ラッパー: @tsparticles/astro
tsParticles の公式 Astro ラッパー。
インストール
bash
pnpm add @tsparticles/astro @tsparticles/engine @tsparticles/slim簡単なセットアップの流れ
- ラッパー + エンジン + 選択したローダー (
@tsparticles/slimを推奨) をインストールします。 - クライアント側のパーティクルをAstroコンポーネント/レイアウトに登録します。
- オプション オブジェクトまたは JSON をラッパー コンポーネントに渡します。
モノリポジトリ参照
- パッケージフォルダー: https://github.com/tsparticles/tsparticles/tree/main/wrappers/astro
- デモアプリ: https://github.com/tsparticles/tsparticles/tree/main/demo/astro
