Confetti
Canvas confetti burst you fire imperatively through a ref. Overlays any container without blocking clicks.
Import
import { Confetti, Button, type ConfettiHandle } from "@igorao79/uivix";Examples
Celebrate
Click the button
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| ref | ConfettiHandle | - | Call ref.current.fire({ x?, y?, count? }) |
| colors | string[] | violet/pink/cyan/yellow/green | Piece colors |
| count | number | 120 | Pieces per burst |
| power | number | 14 | Initial velocity |
| className | string | - | Additional CSS classes |