Involucro: @tsparticles/webcomponents
Wrapper ufficiale dei componenti Web (<web-particles />) per tsParticles.
Installa
bash
pnpm add @tsparticles/webcomponents @tsparticles/engine @tsparticles/slimFlusso di configurazione rapido
- Installa pacchetto + motore + pacchetto caricatore.
- Registra l'elemento personalizzato nella shell dell'app.
- Utilizza
<web-particles />e passa le opzioni.
Riferimenti a Monorepo
- Cartella del pacchetto: https://github.com/tsparticles/tsparticles/tree/main/wrappers/webcomponents
- Applicazione dimostrativa: https://github.com/tsparticles/tsparticles/tree/main/demo/webcomponents
Leggimi
- README del wrapper: https://github.com/tsparticles/tsparticles/tree/main/wrappers/webcomponents#readme
