Beta

Counter

A numeric input control featuring increment and decrement buttons, smoothly animating number transitions using the SlidingNumber component.

Installation

Props

PropTypeDefault
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 }

On this page