Usage
AnimatedNumber formats and animates a numeric value with NumberFlow. The animation runtime lazy-loads; Suspense and chunk failures degrade to the same formatted static value CoreText would render. CoreText stays static-only; use this primitive whenever a number should roll between values.
MetricCard, dashboards, counters).NumericDisplay or NumericCompact typography.Text.MetricCard or Card.| Prop | Purpose |
|---|---|
type | Typography ladder; defaults to NumericDisplay. |
from | Optional entrance start; omission snaps first paint to value. |
duration | Milliseconds; @default 900. Zero or reduced motion snaps. |
live / announcement | Polite live region for the settled value only. |
Inline span root with tabular figures. NumberFlow renders the visual value in a shadow-DOM custom element with a persistent parent-edge alpha mask; settled glyphs remain unobscured while moving digits fade at the top and bottom edges. The formatted screen-reader layer remains the single semantic source.
formatOptions aligned with product number conventions; locale changes snap and reformat.live="polite".announcement, not on delta magnitudes.CoreText.Text for static typography.MetricCard for the KPI preset.