A wrapper that fires a GSAP confetti burst of particles and streamers from any trigger element when it is clicked.
import { PartyPopper } from "@/components/ui/party-popper"; import { Button } from "@/components/ui/button"; export default function PartyPopperDemo() { return ( <div className="flex min-h-[350px] w-full items-center justify-center bg-background text-foreground"> <PartyPopper> <Button>🎉 Celebrate</Button> </PartyPopper> </div> ); }