A quantity stepper needs minimum and maximum behaviour as well as visible controls. Typed input and button input should converge on the same value.
Worked example
<div class="box stack">
<h2>Letterpress cards</h2>
<label class="stack"
>Quantity<input type="number" min="1" max="50" step="1" value="1"
/></label>
</div>Implementation notes
Browser number controls differ across platforms. Keep the underlying value validation independent of whichever spinner or keyboard the platform shows.
Try it yourself
Try the lower boundary, an empty input and repeated increments.
Open the UI Components example →Editorial date September 16, 2026 · Published December 6, 2026