Confetti Button
PROEvery click throws a handful of confetti that arcs up and falls away.
React 19Tailwind 4motionadded 2026-12-05
live preview · confetti button
Installation
Into your bowl in one line.
The CLI drops the source straight into your project. You own every line; there’s no package to update.
- 01
Add it with the CLI
$ npx bowls@latest add confetti-button - 02
Or go manual: install the one dependency
npm i motion - 03
Serve it
Paste the source into
components/bowls/confetti-button.tsxand import it — the Code tab’s demo.tsx shows a full example.
Props
| PROP | TYPE | DEFAULT | WHAT IT DOES |
|---|---|---|---|
| children | ReactNode | — | Button label. |
| colors | string[] | — | Confetti colours. |
| count | number | 30 | Pieces per burst. |
| onClick | () => void | — | Called after the burst fires. |