UNPKG

989 BTypeScriptView Raw
1// Type definitions for react-particles-js v3.0.0
2// Project: https://github.com/wufe/react-particles-js
3// Definitions by: Simone Bembi <https://github.com/wufe>
4// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
5
6/// <reference types="react" />
7import { ComponentClass } from "react";
8import { Container } from "tsparticles/Core/Container";
9import { ISourceOptions } from "tsparticles";
10
11export type IParticlesParams = ISourceOptions;
12
13export * from 'tsparticles/Enums';
14export * from "tsparticles/Plugins/Absorbers/Enums";
15export * from "tsparticles/Plugins/Emitters/Enums";
16export * from "tsparticles/Plugins/PolygonMask/Enums";
17
18export interface ParticlesProps {
19 width?: string;
20 height?: string;
21 params?: IParticlesParams;
22 style?: any;
23 className?: string;
24 canvasClassName?: string;
25 particlesRef?: React.RefObject<Container>;
26}
27
28type Particles = ComponentClass<ParticlesProps>;
29
30declare const Particles: Particles;
31export default Particles;