Browse components
Streak Rain
Streaks of light falling like rain across three depth layers, each with a glowing head and fading trail. WebGL.
Streak Rain
Installation
npx shadcn@latest add @glint-ui/streak-rainFirst time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/streak-rain.json
Usage
import { StreakRain } from "@/components/ui/streak-rain";
<div className="relative h-96">
<StreakRain colorA="#67e8f9" colorB="#a78bfa" />
</div>Props
| Prop | Type | Default | Description |
|---|---|---|---|
| colorA | string | "#67e8f9" | First streak color. |
| colorB | string | "#a78bfa" | Second streak color. |
| speed | number | 1 | Fall speed multiplier. |
| density | number | 12 | Columns per container height (front layer). |
| length | number | 0.35 | Trail length, in container heights. |
| glow | number | 1 | Brightness and bloom. |
| className | string | — | Extra classes for the root element. |