UNPKG

@tsparticles/vue3

Version:

Official tsParticles Vue.js 3.x Component - Easily create highly customizable particle, confetti and fireworks animations and use them as animated backgrounds for your website. Ready to use components available also for Web Components, React, Vue.js 2.x,

14 lines (13 loc) 706 B
import { Engine } from '@tsparticles/engine'; import { App, InjectionKey } from 'vue'; export type ParticlesPluginRegistrar = (engine: Engine) => Promise<void> | void; export interface IParticlesProviderOptions { init?: ParticlesPluginRegistrar; } export interface IParticlesProviderContext { loaded: boolean; } export declare const particlesProviderKey: InjectionKey<IParticlesProviderContext>; export declare function createParticlesProviderContext(): IParticlesProviderContext; export declare function initParticlesProvider(_app: App, context: IParticlesProviderContext, init?: ParticlesPluginRegistrar): Promise<void>; export declare function useParticlesProvider(): IParticlesProviderContext;