Skip to content
nexubDesign System
v11.9.0

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';
View as Markdown

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

TSX
<Celebrate active={paid} />

Examples

On a win

Props

Props
PropTypeDefaultDescription
activerequiredboolean—Bursts each time this goes from false to true.
countnumber28Number of pieces.
classNamestring—

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