Browse components
Fork Flash
A crackling procedural lightning bolt with forking branches, strobing strikes and storm clouds lit from within. WebGL.
Fork Flash
Installation
npx shadcn@latest add @glint-ui/fork-flashFirst time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/fork-flash.json
Usage
import { ForkFlash } from "@/components/ui/fork-flash";
<div className="relative h-96">
<ForkFlash hue={230} />
</div>Props
| Prop | Type | Default | Description |
|---|---|---|---|
| hue | number | 230 | Bolt hue in degrees. |
| speed | number | 1 | Animation speed multiplier. |
| intensity | number | 1 | Bolt and flash brightness. |
| size | number | 1 | Bolt scale; larger zooms in. |
| xOffset | number | 0 | Horizontal position, -1 left to 1 right. |
| interval | number | 2.4 | Seconds between strikes. |
| className | string | — | Extra classes for the root element. |