Preview live, install via shadcn or copy the source.
This will install the component and its dependencies automatically.
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| value | number | — | Yes | Target numeric value to animate toward. |
| className | string | — | No | Optional class name for the rendered element. |
| springOptions | SpringOptions | — | No | Framer Motion spring configuration for the numeric tween. |
| as | React.ElementType | span | No | Element/component to render as. |