Skip to content

    Browse components

    Bolt Strike

    A night storm where procedural, forking lightning bolts strike at random spots and light up the clouds. Canvas 2D.

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/bolt-strike

    First time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/bolt-strike.json

    Usage

    import { BoltStrike } from "@/components/ui/bolt-strike";
    
    <div className="relative h-96">
      <BoltStrike color="#a5b4fc" />
    </div>

    Props

    PropTypeDefaultDescription
    colorstring"#a5b4fc"Glow color of the bolts and flash.
    speednumber1Storm tempo; higher strikes more often.
    scalenumber1Bolt thickness multiplier.
    flashnumber0.6Strength of the sky flash.
    branchingnumber0.6How much the bolts fork.
    classNamestring—Extra classes for the root element.