Invólucro: @tsparticles/webcomponents
Wrapper oficial de componentes da Web (<web-particles />) para tsParticles.
Instalar
bash
pnpm add @tsparticles/webcomponents @tsparticles/engine @tsparticles/slimFluxo de configuração rápida
- Instale o pacote + motor + pacote carregador.
- Registre o elemento personalizado no shell do seu aplicativo.
- Use
<web-particles />e passe opções.
Referências Monorepo
- Pasta do pacote: https://github.com/tsparticles/tsparticles/tree/main/wrappers/webcomponents
- Aplicativo de demonstração: https://github.com/tsparticles/tsparticles/tree/main/demo/webcomponents
Leia-me
- LEIA-ME do wrapper: https://github.com/tsparticles/tsparticles/tree/main/wrappers/webcomponents#readme
