Wrapper: @tsparticles/nextjs
Official Next.js wrapper built on @tsparticles/react.
Install
bash
pnpm add @tsparticles/nextjs @tsparticles/engine @tsparticles/slimQuick setup flow
- Install Next.js wrapper and dependencies.
- Keep rendering client-side only for particle canvas.
- Initialize engine once and render wrapper component.
Monorepo references
- Package folder: https://github.com/tsparticles/tsparticles/tree/main/wrappers/nextjs
- Demo apps: https://github.com/tsparticles/tsparticles/tree/main/demo/nextjs, https://github.com/tsparticles/tsparticles/tree/main/demo/nextjs-legacy
