Docs
Confetti button
Confetti button
A fun and interactive button that triggers a confetti explosion effect on click.
Loading...
Installation
Props
Prop | Type | Description | Default |
---|---|---|---|
className | String | The class name for the component, allowing for custom styling. | - |
angle | Number | The angle at which the confetti is launched (in degrees). | 90 |
particleCount | Number | The number of confetti particles to be launched. | 75 |
startVelocity | Number | The initial velocity of the confetti particles. | 35 |
spread | Number | The spread angle of the confetti particles (in degrees). | 70 |
children | React.ReactNode | The content inside the button, typically text or icons. | undefined |
onClick | Function | The function to call when the button is clicked. | - |