Skip to main content

Stepper

A control that performs increment and decrement actions.

Example​

const stepperVal = useBinding(0);
<Stepper value={stepperVal} step={2} />

Props​

Stepper inherits all View Modifiers as props.

propdescriptiontyperequireddefault
valueThe stepper valueBinding<number> \| numberyesundefined
stepThe increment/decrement amountnumberno1
rangeThe range of values [minNumber, maxNumber][number, number]no[0, 10]
onChangeFunction to execute when the stepper value changes(v: number) => voidnoundefined