Atelier UI

Search components…

Search components…

Confetti Burst

Canvas confetti fired from a button click with physics, cleanup and reduced-motion support.

Edit in sandbox

Copy a prompt for your AI coding tool with the source, dependencies and usage

Props

ConfettiCanvasProps

Also accepts all props of Omit<React.ComponentProps<"canvas">, "ref">

PropTypeDefaultDescription
refReact.Ref<ConfettiHandle>——

ConfettiButtonProps

Also accepts all props of React.ComponentProps<"button">

PropTypeDefaultDescription
confettiConfettiOptions—Options forwarded to every burst

Install

$ npx shadcn@latest add https://chromotion.dev/r/confetti-burst.json

More like this