Skip to content

    Browse components

    Haze Shafts

    Soft volumetric light beams slanting across a dark scene, drifting and breathing through noisy haze. WebGL.

    Haze Shafts

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/haze-shafts

    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/haze-shafts.json

    Usage

    import { HazeShafts } from "@/components/ui/haze-shafts";
    
    <div className="relative h-96">
      <HazeShafts color="#9fb4ff" count={9} />
    </div>

    Props

    PropTypeDefaultDescription
    colorstring"#9fb4ff"Light color of the beams.
    countnumber9Number of beams.
    anglenumber28Slant in degrees.
    speednumber1Drift speed multiplier.
    intensitynumber1Overall brightness.
    hazenumber0.7How much drifting haze breaks up the beams.
    classNamestring—Extra classes for the root element.