v0.1 public beta early access on GitHub
Home / Components / stepper

StepperiOS

Plus/minus quantity control with hold-to-repeat.

$ npx lumioui add stepper
import { Stepper } from "@/components/ui/stepper/stepper";
Stepperstepper.tsx
stepper/stepper.tsx open

Live preview — the real component, driven by the props below.

Props10
value? number Controlled value. Omit + use defaultValue for uncontrolled.
defaultValue? number Uncontrolled initial value. Default 0.
onValueChange? (value: number) => void
min? number
max? number
step? number
disabled? boolean
className? string
showValue? boolean Show the value in the center. Default true. Set false for a compact iOS-style stepper (just -/+).
repeat? boolean Press-and-hold to repeat. Default true.
Stepper — Compactcompact.tsx
stepper/variants/compact.tsx open

Plus/minus quantity control with hold-to-repeat.

Stepper — Quantityquantity.tsx
stepper/variants/quantity.tsx open

Plus/minus quantity control with hold-to-repeat.