Contador de rodillos animado con easing.
npx shadcn@latest add https://reactbits.dev/r/Counter-TS-TW
Sustituyen a un componente estándar cuando la experiencia es parte del producto.
| Prop | Tipo | Por defecto |
|---|---|---|
| value | number | N/A (required) |
| fontSize | number | 100 |
| padding | number | 0 |
| places | number[] | [100, 10, 1 , "." , 0.1] |
| gap | number | 8 |
| borderRadius | number | 4 |
| horizontalPadding | number | 8 |
| textColor | string | inherit |
| fontWeight | string | number | inherit |
| containerStyle | React.CSSProperties | {} |
| counterStyle | React.CSSProperties | {} |
| digitStyle | React.CSSProperties | {} |
| gradientHeight | number | 16 |
| gradientFrom | string | 'black' |
| gradientTo | string | 'transparent' |
| topGradientStyle | React.CSSProperties | undefined |
| bottomGradientStyle | React.CSSProperties | undefined |