Back to components
ComponentEffectFree

Click Burst React component

A wrapper that makes anything celebrate a click: sparks, confetti, hearts, expanding rings or stars burst from the exact point you clicked, drawn on a canvas that spills past the element's edges and stops when the last particle fades.

About the Click Burst component

Click Burst adds a little celebration to a click. Wrap a button — or any area — in it, and particles burst out from exactly where you clicked: bright sparks, tumbling confetti, rising hearts, expanding rings or stars, flying past the element's edges before they fade.

It keeps your button's own click handler and only draws while particles are in the air, so it costs nothing the rest of the time. Keyboard clicks burst from the centre, and reduced-motion settings turn it off.

When to use it

Use it on likes, add-to-cart and 'copy' buttons, reward and completion moments, game UI, or any action that deserves a small 'yes!'.

Save it for actions that matter; a burst on every button quickly stops feeling special.

Installation

Add the Click Burst component to your project with the shadcn CLI. It lands in components/click-burst.tsx as plain React + Tailwind CSS source you own and can edit.

Install
Copied!
npx shadcn@latest add @reactframe/click-burst

Or copy the source by hand and install its dependencies:

Install
Copied!
npm install clsx tailwind-merge

More Effect components

Magnetic Button
Free
Image Mask Reveal
Free
Orbiting Border Glow
Free
Entrance Reveal
Free
Target Lock Cursor
Free
Scroll Snap Sections
Free