ONONC

Number Input

Numeric stepper with clamp, step, and keyboard control.

a11yform

Customize

Default value2
Min0
Max10
Step1

Props

PropTypeDefaultDescription
valuenumberControlled value.
defaultValuenumber0Initial value when uncontrolled.
minnumber-InfinityLower clamp.
maxnumberInfinityUpper clamp.
stepnumber1Increment for −/+ and arrows.
onValueChange(value: number) => voidFired on change.