Emballage : @tsparticles/webcomponents
Wrapper officiel de composants Web (<web-particles />) pour tsParticles.
Installer
bash
pnpm add @tsparticles/webcomponents @tsparticles/engine @tsparticles/slimFlux de configuration rapide
- Installez le package + moteur + package chargeur.
- Enregistrez l'élément personnalisé dans le shell de votre application.
- Utilisez
<web-particles />et transmettez les options.
Références Monorepo
- Dossier du package : https://github.com/tsparticles/tsparticles/tree/main/wrappers/webcomponents
- Application de démonstration : https://github.com/tsparticles/tsparticles/tree/main/demo/webcomponents
