Skip to content

    Browse components

    Tap Burst

    Bursts of sparks radiate from every click inside the area.

    Click anywhere

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/tap-burst

    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/tap-burst.json

    Usage

    import { TapBurst } from "@/components/ui/tap-burst";
    
    <TapBurst sparkColor="#c6ff3d">
      <div className="h-64">Click anywhere</div>
    </TapBurst>

    Props

    PropTypeDefaultDescription
    childrenReactNode—Area that sparks on click.
    sparkColorstring"#ffffff"Spark color.
    sparkCountnumber8Sparks per click.
    sparkRadiusnumber24How far sparks travel, in px.
    sparkSizenumber10Spark line length, in px.
    durationnumber400Ms per burst.
    classNamestring—Extra classes for the root element.