Atelier UI

Search components…

Search components…

Number Stepper

Quantity stepper with press-and-hold acceleration, rolling digits and arrow keys.

Edit in sandbox

Copy a prompt for your AI coding tool with the source, dependencies and usage

Props

NumberStepperProps

Also accepts all props of Omit<React.ComponentProps<"div">, "onChange" | "defaultValue">

PropTypeDefaultDescription
valuenumber——
defaultValuenumber0—
onChange(value: number) => void——
minnumber0—
maxnumber99—
stepnumber1—
labelstring"Quantity"—
unitstring—Shown after the number, e.g. "kg"
size"sm" | "md" | "lg""md"—

Install

$ npx shadcn@latest add https://chromotion.dev/r/number-stepper.json

The CLI installs the base component; your customizations live in the code generated on the Customize tab.

More like this