Skip to content

Wrapper: @tsparticles/stencil

tsParticles 的官方 Stencil wrapper。

安装

bash
pnpm add @tsparticles/stencil @tsparticles/engine @tsparticles/slim

快速配置流程

  1. 安装 wrapper + engine + loader 包。
  2. 使用 @tsparticles/stencil/loader 一次性注册 Stencil custom elements。
  3. 渲染 <stencil-particles />,并传入 init + options(或 url)。

Monorepo 参考

README

相关文档