Involucro: @tsparticles/nextjs
Wrapper Next.js ufficiale basato su @tsparticles/react.
Installa
bash
pnpm add @tsparticles/nextjs @tsparticles/engine @tsparticles/slimFlusso di configurazione rapido
- Installa il wrapper e le dipendenze Next.js.
- Continua a eseguire il rendering lato client solo per il Canvas delle particelle.
- Inizializzare il motore una volta ed eseguire il rendering del componente wrapper.
Riferimenti a Monorepo
- Cartella del pacchetto: https://github.com/tsparticles/tsparticles/tree/main/wrappers/nextjs
- App dimostrative: https://github.com/tsparticles/tsparticles/tree/main/demo/nextjs, https://github.com/tsparticles/tsparticles/tree/main/demo/nextjs-legacy
