Browse components
Tap Burst
Bursts of sparks radiate from every click inside the area.
Click anywhere
Installation
npx shadcn@latest add @glint-ui/tap-burstFirst 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
| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | — | Area that sparks on click. |
| sparkColor | string | "#ffffff" | Spark color. |
| sparkCount | number | 8 | Sparks per click. |
| sparkRadius | number | 24 | How far sparks travel, in px. |
| sparkSize | number | 10 | Spark line length, in px. |
| duration | number | 400 | Ms per burst. |
| className | string | — | Extra classes for the root element. |