Skip to Content
MavKitOne is in beta. @mav-labs-inc/mavkit-react is not public packages yet.
ComponentsInput Stepper

Input Stepper

A numeric increment/decrement control. Holding either button repeats with acceleration (400ms initial delay, then speeding up).

Usage

import { InputStepper } from '@mav-labs-inc/mavkit-react' <InputStepper value={qty} min={0} max={10} onValueChange={setQty} /> <InputStepper defaultValue={40} suffix="%" onValueChange={onChange} />

Examples

Variants

2
2
40%

Zones

zones renders a filled progress bar under a variant="dynamic" stepper, with an optional label for whichever zone the current value falls in.

40%
Medium

Props

PropTypeDefaultDescription
valuenumber—Controlled value — pair with onValueChange.
defaultValuenumber0
onValueChange(value: number) => void—
minnumber-Infinity
maxnumberInfinity
stepnumber1
decimalsnumber0Decimal places to round to.
suffixstring—e.g. '%'.
disabledbooleanfalse
variant'segmented' | 'ghost' | 'dynamic''segmented'
compactbooleanfalse
zones{ min: number; max: number; id?: string; label?: string }[]—Renders a filled zone bar (dynamic variant) with an optional label for the active zone.
format(value: number) => string—Custom value formatter, overriding suffix.
decLabelstring'Decrease'aria-label for the decrement button.
incLabelstring'Increase'aria-label for the increment button.
classNamestring—
Last updated on