Skip to content

    Browse components

    Beams Upstream

    Thin light beams rise along the vertical lines of a softly masked grid, trailing a glowing tail. Canvas 2D.

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/beams-upstream

    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/beams-upstream.json

    Usage

    import { BeamsUpstream } from "@/components/ui/beams-upstream";
    
    <div className="relative h-96">
      <BeamsUpstream color="#38bdf8" />
    </div>

    Props

    PropTypeDefaultDescription
    colorstring"#38bdf8"Beam color.
    gridColorstring"#334155"Grid line color.
    gapnumber56Grid cell size in px.
    speednumber1Rise speed multiplier.
    densitynumber4Beams on screen per 10 grid columns.
    lengthnumber0.28Beam length as a fraction of the height.
    classNamestring—Extra classes for the root element.