Skip to content

    Browse components

    Dual Sparks

    Two streams of sparks rush in from opposite edges and burst against each other in a glowing core. Canvas 2D.

    Dual Sparks

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/dual-sparks

    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/dual-sparks.json

    Usage

    import { DualSparks } from "@/components/ui/dual-sparks";
    
    <div className="relative h-96">
      <DualSparks leftColor="#38bdf8" rightColor="#f472b6" />
    </div>

    Props

    PropTypeDefaultDescription
    leftColorstring"#38bdf8"Color of the stream entering from the left.
    rightColorstring"#f472b6"Color of the stream entering from the right.
    densitynumber90Sparks spawned per second on each side.
    speednumber1Flow speed multiplier.
    glownumber1Brightness of the collision glow.
    spreadnumber0.5How far the streams fan out vertically.
    classNamestring—Extra classes for the root element.