Numbers count up once when they scroll into view, on cards that lean toward the pointer.
Install it the shadcn way: copy the source file into your project. It uses CSS 3D, Tailwind CSS v4 and Framer Motion, no WebGL.
| Prop | Type | Default | Description |
|---|---|---|---|
| value | number | Number the counter counts up to. | |
| prefix | string | "" | Text placed before the number, such as "quot;. |
| suffix | string | "" | Text placed after the number, such as "+" or "%". |
| decimals | number | 0 | Number of digits shown after the decimal point. |
| duration | number | 1.8 | Seconds. |
| className | string | Extra classes added to the number element. |
| Prop | Type | Default | Description |
|---|---|---|---|
| stats | Stat[] | The numbers to show, each with a label. | |
| className | string | Extra classes added to the outer element. |