226
Confetti that blooms out of the button you pressed, hangs at the top of its arc in the air drag, flutters as each piece turns over and drifts down; reduced motion gets a quick check instead.
akaconfetti·celebration·success animation
Run this in any project set up for the shadcn CLI. It copies the Confetti Burst source into your components folder, so the code is yours to change.
npx shadcn@latest add https://devl.dev/r/confetti-burst.jsonImport it and render it. Every prop has a typed default, so it works straight away, and you pass your own data when you’re ready.
import { ConfettiBurst } from "@/components/confetti-burst";
export default function Page() {
return <ConfettiBurst />;
}A free React motion component in the Celebration collection, written in TypeScript with Tailwind CSS on coss ui. MIT licensed.
Read from the Confetti Burst source. Everything is optional unless it says required.
| Prop | Type | Default |
|---|---|---|
| childrenrequired | ReactNode | — |
| className | string | — |
| palette | ConfettiPalette | — |
| count | number | — |