Browse components
Haze Shafts
Soft volumetric light beams slanting across a dark scene, drifting and breathing through noisy haze. WebGL.
Haze Shafts
Installation
npx shadcn@latest add @glint-ui/haze-shaftsFirst 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
| Prop | Type | Default | Description |
|---|---|---|---|
| color | string | "#9fb4ff" | Light color of the beams. |
| count | number | 9 | Number of beams. |
| angle | number | 28 | Slant in degrees. |
| speed | number | 1 | Drift speed multiplier. |
| intensity | number | 1 | Overall brightness. |
| haze | number | 0.7 | How much drifting haze breaks up the beams. |
| className | string | — | Extra classes for the root element. |