@brickslab/ui-web
Interactive button that triggers confetti animation on click. Combines the Confetti component with a button for easy celebration triggers.
Aperçu
Default ConfettiButton
With Custom Confetti Options
Multiple Variants
Props Table
| Prop | Type | Défaut | Requis | Description |
|---|---|---|---|---|
children | React.ReactNode | — | — | Button label or content. |
options | Partial<ConfettiProps> | — | — | Configuration for confetti animation. |
disabled | boolean | false | — | Disable the button. |
onClick | () => void | — | — | Callback triggered on click. |
className | string | — | — | Additional CSS class. |