Stepper (Number Input)
Minus and plus buttons around a number that change it one step at a time.
Also known as: Number Input
<input type="number">When to use it
For small quantities: items in a cart, number of guests.
Common mistake
For large numbers like 1500, let people type.
Accessibility
Label the buttons ("Decrease quantity") and announce the new value.
Name in code
| HTML/CSS | <input type="number"> |
|---|---|
| React | <NumberInput> (custom) |
| Jetpack Compose | Custom Row (no built-in) |
| SwiftUI | Stepper |
Ready prompt for your coding agent
Add a Stepper (Number Input) to this screen.
What it is: Minus and plus buttons around a number that change it one step at a time.
Implement with: <input type="number"> (HTML/CSS).
Accessibility: Label the buttons ("Decrease quantity") and announce the new value.
When to use it: For small quantities: items in a cart, number of guests.
Avoid: For large numbers like 1500, let people type.
Reuse the project's existing design tokens, spacing and component conventions.
Or compose a whole page from this element and others →
Prompts are in English for the most precise results with coding agents.