Sliding Number

A component that slides numbers.

Examples

Clock

:
:

Sliding number with slider

Current ARR:
$

Sliding number basic

%

Installation

npx shadcn@latest add "https://components.dylanwlim.com/c/sliding-number.json"

Component API

SlidingNumber

PropTypeDefaultDescription
valuestringThe numerical value to be displayed.
padStartbooleanfalseWhether to pad the integer part with a leading zero if it is less than 10.
decimalSeparatorstring'.'The character to use as the decimal separator.

Credits

Inspired by Number Flow and Animated Counter.