Skip to content

    Browse components

    Aurora Dots

    A dot matrix lit by drifting aurora ribbons; each dot takes its color from the moving light field and glows near the cursor. WebGL.

    Aurora Dots

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/aurora-dots

    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/aurora-dots.json

    Usage

    import { AuroraDots } from "@/components/ui/aurora-dots";
    
    <div className="relative h-96">
      <AuroraDots colors={["#34d399", "#22d3ee", "#a78bfa"]} />
    </div>

    Props

    PropTypeDefaultDescription
    colorsstring[]["#34d399","#22d3ee","#a78bfa"]Three aurora colors.
    baseColorstring"#3f3f46"Color of unlit dots.
    gapnumber18Px between dots.
    dotSizenumber2.5Dot radius in px at full light.
    speednumber1Drift speed multiplier.
    scalenumber1Size of the aurora bands.
    classNamestring—Extra classes for the root element.