Skip to main content
InputLevel 3

Number Stepper

数字微调器

WebMobileDesktopDifficulty: Medium

A control for stepping a number up and down, with a decrement button on the left, the current value in the middle, and an increment button on the right.

01

Live Demo

Actually clickable
Live Demo Playground

Export quantity

1

Range 1 – 99

The minus button disables at the minimum — that's a clear boundary signal to the user.

What you just saw:The "− 1 +" control on each cart line, the serving-count stepper on a food delivery order.

02

What it actually is

A number stepper is built for small adjustments: cart quantity 1 to 2 to 3. Its difference from a slider is that a stepper suits discrete, small steps that need to be exact, while a slider suits continuous, large adjustments.

number stepperstepperquantity stepperincrement buttonscounter inputplus minus
03

Anatomy · What it's made of

  1. Decrement减号

    Disabled at the minimum

  2. Value数值

    Centered, editable

  3. Increment加号

    Disabled at the maximum

  4. Bounds上下限

    Constrained by min/max

04

When to Use

When it fits, and when it doesn't
Number Stepper usage recommendations
SituationUse it?
Incrementing and decrementing within a small integer rangeYes
An exact value is required (dragging will not do)Yes
The quantity has a minimum and a maximumYes
The user needs to adjust across a wide rangeNo
The value needs continuous decimal precisionNo

Decide what happens at zero: does it remove the row, or does it just stop decrementing?

Disable the corresponding button when a bound is reached so the limit is visible, not mysterious.

05

Similar Patterns

Don't mix these up
06

How to tell AI

Three levels of prompt

Add the component name and specifics

Add a quantity stepper: minus and plus buttons on either side with the number in the middle, a range of 1–99, the minus button disabled at 1, the plus button disabled at 99, and a number in the middle that can also be typed into directly.

07

Don't just say this to AI

Bad → Better

Don't say this to AI

Add something to increment and decrement a number.

Say this instead

Add a Number Stepper: increment and decrement icon buttons flanking the value, clamped to [min,max], with the corresponding button disabled and dimmed at each bound, hit areas of at least 44x44, and tabular-nums so the digits do not jitter.

08

Share this card

Social-ready

Turn this pattern into a 3:4 or 1:1 knowledge card and export it as PNG right in the browser. No backend needed.