Particle Bacgkround
Installation
Props
Prop | Type | Default | Description |
---|---|---|---|
className | string | "" | Additional CSS classes to style the particles container. |
preset | "default" | "links" | "bubbles" | "snow" | "stars" | "fireflies" | "floating" | "confetti" | "default" | Preset configuration for the particle effect. Choose a preset to apply predefined behavior and appearance. |
color | string | "#5B21B6" | Primary color for the particles. |
particleCount | number | 50 | The number of particles to display. |
speed | number | 3 | Speed of the particle movement. |
interactive | boolean | true | Enables interactivity (particles react to click and hover events). |
zIndex | number | 0 | CSS z-index value for the particles container. |
containerId | string | "tsparticles" | The ID assigned to the particles container. |