Browse components
Spectrum Burst
A radial burst of light rays pulsing outward from the center, split into rainbow fringes by chromatic dispersion. WebGL.
Spectrum Burst
Installation
npx shadcn@latest add @glint-ui/spectrum-burstFirst time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/spectrum-burst.json
Usage
import { SpectrumBurst } from "@/components/ui/spectrum-burst";
<div className="relative h-96">
<SpectrumBurst rays={16} dispersion={1} />
</div>Props
| Prop | Type | Default | Description |
|---|---|---|---|
| tint | string | "#ffffff" | Multiplies the ray colors. |
| speed | number | 1 | Animation speed multiplier. |
| rays | number | 16 | Number of main rays. |
| dispersion | number | 1 | Chromatic split strength. |
| pulse | number | 0.6 | Outward pulse strength. |
| intensity | number | 1 | Brightness. |
| followMouse | number | 0.2 | How far the center drifts toward the cursor. |
| className | string | — | Extra classes for the root element. |