Back
Sparkles
Satu Visual ComponentNew
A field of twinkling sparkles as a decorative layer.
Sparkles
Installation
Add it with the CLI:
Terminal
$
Or open the Code tab above and copy it in manually — it relies on the standard cn() helper from @/lib/utils.
Usage
Place inside a relative container as a background or foreground layer.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| density | number | 40 | Number of sparkles. |
| className | string | — | Extra classes. |
| color | string | #ffffff | Sparkle color. |