Browse components
Bolt Strike
A night storm where procedural, forking lightning bolts strike at random spots and light up the clouds. Canvas 2D.
Installation
npx shadcn@latest add @glint-ui/bolt-strikeFirst 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/bolt-strike.json
Usage
import { BoltStrike } from "@/components/ui/bolt-strike";
<div className="relative h-96">
<BoltStrike color="#a5b4fc" />
</div>Props
| Prop | Type | Default | Description |
|---|---|---|---|
| color | string | "#a5b4fc" | Glow color of the bolts and flash. |
| speed | number | 1 | Storm tempo; higher strikes more often. |
| scale | number | 1 | Bolt thickness multiplier. |
| flash | number | 0.6 | Strength of the sky flash. |
| branching | number | 0.6 | How much the bolts fork. |
| className | string | — | Extra classes for the root element. |