Browse components
Side Rays
Warm light slanting in from one side through window blinds, with dust motes glinting in the beams. WebGL.
Side Rays
Installation
npx shadcn@latest add @glint-ui/side-raysFirst time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glint-ui-seven.vercel.app/r/side-rays.json
Usage
import { SideRays } from "@/components/ui/side-rays";
<div className="relative h-96">
<SideRays side="left" angle={0.35} />
</div>Props
| Prop | Type | Default | Description |
|---|---|---|---|
| color | string | "#ffe2b8" | Light color. |
| speed | number | 1 | Animation speed multiplier. |
| side | "left" | "right" | "left" | Edge the light enters from. |
| angle | number | 0.35 | Downward tilt in radians. |
| slats | number | 7 | Blind slats across the height. |
| intensity | number | 1 | Brightness. |
| dust | number | 0.6 | Amount of floating dust. |
| className | string | — | Extra classes for the root element. |