🖼️Number Stepper
Also known as Stepper Input, Quantity Stepper, Spin Button
A number with minus and plus buttons. Each press adds or takes one.
Think of it like
It is like counting on your fingers. One more, one less.
Example
Jack orders shoes and taps plus twice. The quantity goes from 1 to 3.
Why it matters
Small counts change in one or two taps, with no keyboard needed.
Definition
Example code
html
<label for="qty">Quantity</label>
<input id="qty" type="number" min="1" max="10" value="1">Try it
Tickets
The number is exact, and it is readable without a drag.
Two taps to three. The same on a slider is a drag you have to look at.
Common mistake
Key takeaways
- 1Minus and plus. One step per press.
- 2For small counts. Quantity, guests.
- 3Typing still works. For bigger jumps.