CountUp
Animated number counter that interpolates from one value to another.
Import
import { CountUp } from "neoterm-ui";Usage
<CountUp to={1234} />
<CountUp from={0} to={99.9} decimals={1} prefix="$" suffix="M" duration={2000} />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| to | number | — | Target value. |
| from | number | 0 | Starting value. |
| duration | number | 1000 | Animation duration in ms. |
| decimals | number | 0 | Decimal places. |
| prefix | string | — | Text before the number. |
| suffix | string | — | Text after the number. |