ComponentsEffects
Counting number
A number that counts to its value
0tokens counted
Usage
import { CountingNumber } from "@gpuixui/components";
<CountingNumber value={1284} from={0} role="display" />;API
| Prop | Type | Default |
|---|---|---|
value | number (required) | — |
from | number | value |
durationMs | number | 320 |
decimals | number | 0 |
format | (value: number) => string | — |
label | string | the target's text |
role | TextRole | "body" |
className | string | — |
style | StateStyle<CountingNumberState> | — |
Edit this page on GitHubpackages/components/docs/counting-number.mdx