Labeling
- Pair
NumberFieldInputwith a visibleLabel.
Keyboard Behavior
AnnouncementFocus the demo and press a key from the table.
| Key | Action |
|---|---|
| ↑ | Increases the value by one step, up to max. An empty field gets min, or 0 without it. |
| ↓ | Decreases the value by one step, down to min. |
- Standard text editing still happens through the native input.
Focus Behavior
- Focus lives on the input and any stepper buttons.
- Ensure adjacent controls remain keyboard reachable in a sensible order.
Screen Reader Semantics
- The meaningful input is still a native input.
aria-valueminandaria-valuemaxare exposed on the input from context.
Form Semantics
name,required, and submission behavior belong toNumberFieldInput.- Bounds and stepping are product behavior, not a replacement for backend validation.
Accessibility Risks
- unlabeled numeric field
- wheel-based changes surprising users when focus is on the field
- unclear meaning of adjacent decrement/increment buttons