Components · Feedback
Celebrate
BetaAdded v4.3.0
A short confetti burst for a real win, such as a first payment or finishing onboarding.
import { Celebrate } from '@nexub/react';Usage
Use it for
A rare, real win the user worked for: first payment received, onboarding finished, a goal reached.
Use something else for
Routine saves or every success; use the Button success state or a Toast.
As the only feedback: say what happened in text too.
Playground
Props
<Celebrate active={paid} />Examples
On a win
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| activerequired | boolean | — | Bursts each time this goes from false to true. |
| count | number | 28 | Number of pieces. |
| className | string | — |
Accessibility
Screen reader
Decorative (`aria-hidden`). Announce the win in text, for example in a Toast or a status message.
Notes
Hidden under reduced motion.
On iOS & Android
Web only
Celebrate has no @nexub/react-native twin. On phones, follow the platform pattern instead, or compose it from the native components listed on the React Native page.