Sparkles Title
A React title component enhanced with a sparkling particle effect using @tsparticles/react and @tsparticles/slim. Adds dynamic, eye-catching sparkles to headings for modern UI designs.
A React title component enhanced with a sparkling particle effect using @tsparticles/react and @tsparticles/slim. Adds dynamic, eye-catching sparkles to headings for modern UI designs.
npm install @tsparticles/react @tsparticles/slim
| Prop | Type | Default | Description |
|---|---|---|---|
| className | string | Optional CSS class for styling the sparkles component. | |
| size | number | 1.2 | Size of the sparkles. |
| minSize | number | null | null | Minimum size of the sparkles, or null if no minimum size is set. |
| density | number | 800 | Density of the sparkles. |
| speed | number | 1.5 | Speed of the sparkles' animation. |
| minSpeed | number | null | null | Minimum speed of the sparkles, or null if no minimum speed is set. |
| opacity | number | 1 | Opacity of the sparkles. |
| direction | string | '' | Direction of the sparkles' movement. |
| opacitySpeed | number | 3 | Speed at which the opacity of the sparkles changes. |
| minOpacity | number | null | null | Minimum opacity of the sparkles, or null if no minimum opacity is set. |
| color | string | '#ffffff' | Color of the sparkles. |
| mousemove | boolean | false | Whether the sparkles should follow the mouse movement. |
| hover | boolean | false | Whether the sparkles should be active on hover. |
| background | string | 'transparent' | Background color of the component. |
| options | Record<string, any> | {} | Additional options for configuring the sparkles. |