Confetti
llms.txtExample
Usage
<Button onclick={() => launchConfetti()}>Launch Confetti</Button>
API Reference
launchConfetti
A function (not a component) that launches a confetti animation using theme colors. Import and call it directly.
Property Type Description
color
string
The theme color name to use for confetti particles (e.g. 'accent', 'red', 'blue'). Default:
'accent'brightnesses
array
The brightness levels of the color to use for confetti particles. Default:
[300, 400, 500, 800]Property
color
brightnesses