Axon 911 Frontend DocsAxon 911 Frontend Docs
Axon 911 Frontend Docs
    Loading navigation…
U
User
Switch to light mode
  1. Primitives
  2. Animated Number
  3. Usage

Animated Number

Usage

Overview
A changing number is Text from @prepared911/ui/text with value. Text formats it, sets tabular numerals, and rolls the digits that changed. roll={false} renders the same formatted number as plain text.
When to use
  • KPI values that update in place (MetricCard, dashboards, counters).
  • Any numeric readout that should move when its value changes.
When not to use
  • Plain labels, headings, or prose: pass children to Text instead of value.
  • Copy the caller already wrote, including a preformatted duration.
  • Entire card activation: use MetricCard or Card.
Variants
PropPurpose
valueThe number. Digits roll to each new value.
typeTypography role, such as TextType.Title or TextType.Section.
fromOptional entrance start. Omission paints value with no motion.
rollfalse renders plain formatted text. Default is true.
announcementLocalized copy a polite live region speaks after the roll settles.
Related
  • Text for typography and value mode.
  • MetricCard for the KPI preset.
Previous
Tokens
Next
Animated Number / API and Development
On this page
Overview
When to use
When not to use
Variants
Related