FX · Text
A number that counts up to its value when it scrolls into view, formatted with Intl.NumberFormat.
Components
Weekly installs
Saved per seat
- Screen readers get the final formatted value only; the ticking copy is aria-hidden.
- Tabular figures prevent sideways jitter.
- prefers-reduced-motion: reduce (or data-rad-fx-motion="reduce" on an ancestor) shows the final value without counting.
| Prop | Type | Default | Description |
|---|---|---|---|
to | number | — | Final value. |
from | number | 0 | Starting value. |
duration | number | 1600 | Milliseconds to count. |
format | Intl.NumberFormatOptions | — | Number formatting. |
locale | string | browser | Locale for formatting. |