Confetti
Canvas confetti that bursts from the pointer.
Import
tsx
import { Confetti } from "@cronus-ui/ui";
bash
npx cronus-ui add confetti
Examples
API Reference
Generated from the component's exported types.
ConfettiProps
Extends HTMLAttributes<HTMLDivElement>
| Prop | Type | Default | Description |
|---|---|---|---|
ref | Ref<HTMLDivElement> | — | — |
count | number | 48 | Pieces spawned per burst. |
fireOnMount | boolean | false | Fire a burst on mount. |