Skip to content
caliper ui pro docs

Celebration burst

One small burst of confetti when a real milestone completes: the first deploy, a finished setup, a paid invoice. Skipped under reduced motion; the words say what happened.

Pro

Waiting for the first payment

Mark INV-0001 paid when the money arrives.

When to use

  • The end of onboarding, a first success, a goal reached.
  • Moments people reach once or rarely.

When not to use

  • Routine actions such as saving or sending.
  • Anything that might go wrong next; celebrate only a settled result.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/celebration-burst

Adds its 4 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.

API reference

CelebrationBurst

4 props
PropTypeDefaultDescription
fire *number—Launches a burst each time this number goes up. 0 never fires.
piecesnumber28
spreadnumber11 is a compact burst for a button; 2 suits a card.
classNamestring—

Keyboard

  • No custom key handling; Tab and the native activation keys do the work.

Accessibility

It is built on native elements and keeps aria-hidden in step with state.

Motion

  • State changes animate with the library's shared durations and curves, so its timing matches every other part.
  • Under reduced motion each change lands on its end state without movement; nothing is hidden or skipped.

Notes for AI

Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

/docs/components/celebration-burst.md

The index of every part is at /llms.txt.

More in Surfaces