Wrapper: @tsparticles/webcomponents
Official Web Components wrapper (<web-particles />) for tsParticles.
Install
bash
pnpm add @tsparticles/webcomponents @tsparticles/engine @tsparticles/slimQuick setup flow
- Install package + engine + loader package.
- Register custom element in your app shell.
- Use
<web-particles />and pass options.
Monorepo references
- Package folder: https://github.com/tsparticles/tsparticles/tree/main/wrappers/webcomponents
- Demo app: https://github.com/tsparticles/tsparticles/tree/main/demo/webcomponents
