Skip to content

    Browse components

    Spiral Stars

    A slowly spinning spiral galaxy of twinkling stars and glowing dust, with depth parallax under the cursor.

    Spiral Stars

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/spiral-stars

    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/spiral-stars.json

    Usage

    import { SpiralStars } from "@/components/ui/spiral-stars";
    
    <div className="relative h-96 bg-black">
      <SpiralStars hue={225} arms={2} />
    </div>

    Props

    PropTypeDefaultDescription
    huenumber225Hue of the arms in degrees; the core takes the warm opposite.
    densitynumber1Star density multiplier.
    armsnumber2Number of spiral arms.
    speednumber1Rotation and twinkle speed.
    twinklenumber0.6Twinkle amount.
    scalenumber1Zoom.
    parallaxnumber1Cursor parallax strength.
    classNamestring—Extra classes for the root element.