Wrapper: @tsparticles/svelte
Official Svelte wrapper for tsParticles.
Install
bash
pnpm add @tsparticles/svelte @tsparticles/engine @tsparticles/slimQuick setup flow
- Install wrapper + engine + loader package.
- Initialize engine features once.
- Render Svelte component with options in props.
Monorepo references
- Package folder: https://github.com/tsparticles/tsparticles/tree/main/wrappers/svelte
- Demo apps: https://github.com/tsparticles/tsparticles/tree/main/demo/svelte, https://github.com/tsparticles/tsparticles/tree/main/demo/svelte-kit
