Docs
Confetti Button
Confetti Button
Displays a Confetti button or a component that looks like a button.
Installation
Copy and paste the cn util code into your project.
import { ClassValue, clsx } from "clsx"
import { twMerge } from "tailwind-merge"
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs))
}
Install the following dependencies:
npm install canvas-confetti
Install the shadcn/ui dependencies:
You need to install shadcn components, like this:
npx shadcn@latest add button