Wrappers
यह पेज wrappers का hub है। सही package चुनें और फिर installation/usage details के लिए dedicated पेज खोलें।
Source folder: https://github.com/tsparticles/tsparticles/tree/main/wrappers
Wrapper pages
सबसे लोकप्रिय पहले
React ecosystem
Vue ecosystem
अन्य (alphabetical)
Angular ConfettiAngular FireworksAstroEmberInfernojQueryLitPreactQwikRiotSolidWeb ComponentsWordPress
Common integration flow
Framework कोई भी हो:
- wrapper +
@tsparticles/engineinstall करें - features एक बार load करें (
@tsparticles/slim,@tsparticles/all, या custom plugins) - options के साथ wrapper component render करें
Official wrappers (alphabetical)
इस section की ordering rule:
package name के हिसाब से alphabetical order
exceptions mapping notes में explicit लिखे जाते हैं (जैसे WordPress को full installation चाहिए)
@tsparticles/angular: Angular component wrapper (<ngx-particles />)
Docs: https://github.com/tsparticles/tsparticles/tree/main/wrappers/angular#readme - local guide:/guide/wrappers-angular@tsparticles/astro: Astro component wrapper
Docs: https://github.com/tsparticles/tsparticles/tree/main/wrappers/astro#readme - local guide:/guide/wrappers-astro@tsparticles/ember: Ember wrapper
Docs: https://github.com/tsparticles/tsparticles/tree/main/wrappers/ember#readme - local guide:/guide/wrappers-ember@tsparticles/inferno: Inferno component wrapper
Docs: https://github.com/tsparticles/tsparticles/tree/main/wrappers/inferno#readme - local guide:/guide/wrappers-inferno@tsparticles/jquery: jQuery plugin wrapper
Docs: https://github.com/tsparticles/tsparticles/tree/main/wrappers/jquery#readme - local guide:/guide/wrappers-jquery@tsparticles/lit: Lit component package
Source: https://github.com/tsparticles/tsparticles/tree/main/wrappers/lit - local guide:/guide/wrappers-lit@tsparticles/nextjs: Next.js wrapper over@tsparticles/react
Docs: https://github.com/tsparticles/tsparticles/tree/main/wrappers/nextjs#readme - local guide:/guide/wrappers-nextjs@tsparticles/nuxt2: Nuxt 2 module (client-side registration)
Docs: https://github.com/tsparticles/tsparticles/tree/main/wrappers/nuxt2#readme - local guide:/guide/wrappers-nuxt2@tsparticles/nuxt3: Nuxt 3 module (client-side registration)
Docs: https://github.com/tsparticles/tsparticles/tree/main/wrappers/nuxt3#readme - local guide:/guide/wrappers-nuxt3@tsparticles/nuxt4: Nuxt 4 module (client-side registration)
Docs: https://github.com/tsparticles/tsparticles/tree/main/wrappers/nuxt4#readme - local guide:/guide/wrappers-nuxt4@tsparticles/preact: Preact component wrapper
Docs: https://github.com/tsparticles/tsparticles/tree/main/wrappers/preact#readme - local guide:/guide/wrappers-preact@tsparticles/qwik: Qwik component wrapper
Docs: https://github.com/tsparticles/tsparticles/tree/main/wrappers/qwik#readme - local guide:/guide/wrappers-qwik@tsparticles/react: React component wrapper
Docs: https://github.com/tsparticles/tsparticles/tree/main/wrappers/react#readme - local guide:/guide/wrappers-react@tsparticles/riot: Riot wrapper
Docs: https://github.com/tsparticles/tsparticles/tree/main/wrappers/riot#readme - local guide:/guide/wrappers-riot@tsparticles/solid: Solid component wrapper
Docs: https://github.com/tsparticles/tsparticles/tree/main/wrappers/solid#readme - local guide:/guide/wrappers-solid@tsparticles/svelte: Svelte component wrapper
Docs: https://github.com/tsparticles/tsparticles/tree/main/wrappers/svelte#readme - local guide:/guide/wrappers-svelte@tsparticles/vue2: Vue 2 component wrapper
Docs: https://github.com/tsparticles/tsparticles/tree/main/wrappers/vue2#readme - local guide:/guide/wrappers-vue2@tsparticles/vue3: Vue 3 component wrapper
Docs: https://github.com/tsparticles/tsparticles/tree/main/wrappers/vue3#readme - local guide:/guide/wrappers-vue3@tsparticles/webcomponents: Web Components wrapper (<web-particles />)
Docs: https://github.com/tsparticles/tsparticles/tree/main/wrappers/webcomponents#readme - local guide:/guide/wrappers-webcomponents@tsparticles/wordpress: official WordPress plugin package
Source: https://github.com/tsparticles/tsparticles/tree/main/wrappers/wordpress - local guide:/guide/wrappers-wordpressangular-confetti: Angular wrapper for@tsparticles/confetti
Docs: https://github.com/tsparticles/tsparticles/tree/main/wrappers/angular-confetti#readme - local guide:/guide/wrappers-angular-confettiangular-fireworks: Angular wrapper for@tsparticles/fireworks
Docs: https://github.com/tsparticles/tsparticles/tree/main/wrappers/angular-fireworks#readme - local guide:/guide/wrappers-angular-fireworks
WordPress और Elementor नोट्स
@tsparticles/wordpressofficial plugin package है और इसके लिए full WordPress setup चाहिए।- Elementor के लिए कोई official standalone
tsParticlesplugin package नहीं है। - README में Premium Addons for Elementor के माध्यम से integration का संदर्भ है: https://premiumaddons.com/particles-section-addon-for-elementor-page-builder/
Wrapper से demo mapping
इस matrix से wrapper package से runnable monorepo demo पर जल्दी जा सकते हैं।
Table ordering rule:
- wrapper package name के हिसाब से alphabetical order
- demo पर लागू न होने वाले wrappers के लिए explicit exception (
@tsparticles/wordpress)
Source demos folder: https://github.com/tsparticles/tsparticles/tree/main/demo
| Wrapper package | Demo project |
|---|---|
@tsparticles/angular | demo/angular |
@tsparticles/astro | demo/astro |
@tsparticles/ember | demo/ember |
@tsparticles/inferno | demo/inferno |
@tsparticles/jquery | demo/jquery |
@tsparticles/lit | demo/lit |
@tsparticles/nextjs | demo/nextjs, demo/nextjs-legacy |
@tsparticles/nuxt2 | demo/nuxt2 |
@tsparticles/nuxt3 | demo/nuxt3 |
@tsparticles/nuxt4 | demo/nuxt4 |
@tsparticles/preact | demo/preact |
@tsparticles/qwik | demo/qwik |
@tsparticles/react | demo/react |
@tsparticles/riot | demo/riot |
@tsparticles/solid | demo/solid |
@tsparticles/svelte | demo/svelte, demo/svelte-kit |
@tsparticles/vue2 | demo/vue2 |
@tsparticles/vue3 | demo/vue3 |
@tsparticles/webcomponents | demo/webcomponents |
@tsparticles/wordpress | लागू नहीं (पूर्ण WordPress installation आवश्यक) |
angular-confetti | demo/angular |
angular-fireworks | demo/angular |
Minimal patterns
React / Next.js-style provider
import Particles, { ParticlesProvider } from "@tsparticles/react";
import type { Engine } from "@tsparticles/engine";
import { loadSlim } from "@tsparticles/slim";
const init = async (engine: Engine): Promise<void> => {
await loadSlim(engine);
};
export function Background() {
return (
<ParticlesProvider init={init}>
<Particles id="tsparticles" options={{ particles: { move: { enable: true } } }} />
</ParticlesProvider>
);
}Vue / Nuxt-style register function
import type { Engine } from "@tsparticles/engine";
export async function registerParticles(engine: Engine): Promise<void> {
const [{ loadSlim }] = await Promise.all([import("@tsparticles/slim")]);
await loadSlim(engine);
}Angular one-time initialization
import { NgParticlesService } from "@tsparticles/angular";
import { loadSlim } from "@tsparticles/slim";
constructor(private readonly particlesService: NgParticlesService) {}
ngOnInit(): void {
void this.particlesService.init(async engine => {
await loadSlim(engine);
});
}