Cursor & Interaction Effects

Confetti Button

완료, 성공, 축하 같은 순간에 짧은 즐거움을 더하는 색종이 효과입니다.

Preview

interaction effect

Confetti Button

press to celebrate

Installation

bash
Copied
1pnpm dlx shadcn@latest add https://ryong.dev/r/confetti.json

Code

typescript
Copied
1import { ConfettiButton } from "@/components/confetti"23export default function Example() {4  return <ConfettiButton>Celebrate</ConfettiButton>5}

Props

PropTypeDefaultDescription
optionsConfettiOptions-Per-shot confetti options.
globalOptionsConfettiGlobalOptions{ resize: true }Canvas instance options.
manualstartbooleanfalseWhether to start manually.
childrenReact.ReactNode-Content rendered inside the component.

Reference

Reference Confetti Button