NumberTicker
A NumberTicker component from the Sigil design system.
Import
import { NumberTicker } from "@sigil-ui/components";Preview
Usage
<NumberTicker>NumberTicker content</NumberTicker>Props
| Prop | Type | Default | Description |
|---|---|---|---|
value | number | — | Target value to count to. |
from | number | 0 | Starting value. |
duration | number | 1200 | Animation duration in ms. |
delay | number | 0 | Base delay in ms. |
decimals | number | 0 | Number of decimal places. |
prefix | string | — | Prefix string (e.g. "$"). |
suffix | string | — | Suffix string (e.g. "%"). |
formatNumber | boolean | true | Use locale number formatting with separators. |
trigger | `"scroll" | "mount"` | — |
viewOptions | UseInViewOptions | — | — |