Skip to content

    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

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/spectrum-burst

    First 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

    PropTypeDefaultDescription
    tintstring"#ffffff"Multiplies the ray colors.
    speednumber1Animation speed multiplier.
    raysnumber16Number of main rays.
    dispersionnumber1Chromatic split strength.
    pulsenumber0.6Outward pulse strength.
    intensitynumber1Brightness.
    followMousenumber0.2How far the center drifts toward the cursor.
    classNamestring—Extra classes for the root element.