Counter
An effect component that displays numerical values with animated transitions during value changes.
0
With Decimals
Use the decimals prop to set a specified number of decimal places.
0.0
With Custom formatter
Use the formatter prop to set a function to format the counter value in a custom way.
0
API
Counter
| Element | Selector |
|---|---|
Counter | .ex-counter |
| Prop | Type | Default |
|---|---|---|
as | ElementType | span |
asChild | boolean | false |
decimals | number | 0 |
delay | number | 0 |
duration | number | 1000 |
initialValue | number | 0 |
value | number | |
formatter | function |
Last updated on