ラッパー: @tsparticles/webcomponents
tsParticles の公式 Web コンポーネント ラッパー (<web-particles />)。
インストール
bash
pnpm add @tsparticles/webcomponents @tsparticles/engine @tsparticles/slim簡単なセットアップの流れ
- パッケージ + エンジン + ローダー パッケージをインストールします。
- カスタム要素をアプリシェルに登録します。
<web-particles />を使用し、オプションを渡します。
モノリポジトリ参照
- パッケージフォルダー: https://github.com/tsparticles/tsparticles/tree/main/wrappers/webcomponents
- デモアプリ: https://github.com/tsparticles/tsparticles/tree/main/demo/webcomponents
