Counter
A numeric input control featuring increment and decrement buttons, smoothly animating number transitions using the SlidingNumber component.
0
01234567890
01234567890
0123456789Installation
Props
Prop | Type | Default |
---|---|---|
buttonProps? | Omit<React.ComponentProps<typeof Button>, 'onClick'> | - |
className? | string | - |
number | number | - |
setNumber | (number: number) => void | - |
slidingNumberProps? | Omit<SlidingNumberProps, 'number'> | - |
transition? | Transition | { type: "spring", bounce: 0, stiffness: 300, damping: 30 } |