Skip to content

    Browse components

    Fork Flash

    A crackling procedural lightning bolt with forking branches, strobing strikes and storm clouds lit from within. WebGL.

    Fork Flash

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/fork-flash

    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/fork-flash.json

    Usage

    import { ForkFlash } from "@/components/ui/fork-flash";
    
    <div className="relative h-96">
      <ForkFlash hue={230} />
    </div>

    Props

    PropTypeDefaultDescription
    huenumber230Bolt hue in degrees.
    speednumber1Animation speed multiplier.
    intensitynumber1Bolt and flash brightness.
    sizenumber1Bolt scale; larger zooms in.
    xOffsetnumber0Horizontal position, -1 left to 1 right.
    intervalnumber2.4Seconds between strikes.
    classNamestring—Extra classes for the root element.