What the person is doing
The value is a real number or count that can be incremented or decremented.
Application · lesson 14 of 20 · Selection And Choice
Underlying principle: Choice controls express how many options are available, how many may be selected, and when the selection takes effect. The control should reveal the meaning and consequence of each choice.
Provide a labelled editable numeric value with explicit increment and decrement controls, declared min, max, step, unit, keyboard movement, direct typing, validation, and repair feedback.
Choice controls express how many options are available, how many may be selected, and when the selection takes effect. The control should reveal the meaning and consequence of each choice.
The value is a real number or count that can be incremented or decremented.
Provide a labelled editable numeric value with explicit increment and decrement controls, declared min, max, step, unit, keyboard movement, direct typing, validation, and repair feedback.
Initial state with visible label, default value, unit, min, max, and step.
Is the value actually incrementable, or is it a string made of digits?
Increment and decrement controls change the value by the declared step and stop at the lower and upper bounds.
The value is a real number or count that can be incremented or decremented.
The full lab is intentionally loaded on request. That keeps this reading page fast while preserving the strong and weak states, keyboard checks, and failure scenarios.
The value is a real number or count that can be incremented or decremented.
Provide a labelled editable numeric value with explicit increment and decrement controls, declared min, max, step, unit, keyboard movement, direct typing, validation, and repair feedback.
Initial state with visible label, default value, unit, min, max, and step.
Keyboard arrows change a focused number unexpectedly while the user intended to scroll or edit text.
Expose the editable value as a spinbutton or native number input with a visible label.
W3C Web Accessibility Initiative - checked
APG defines spinbutton as a discrete range input with direct editing, increase and decrease behavior, keyboard movement, value properties, labeling, and invalid state.
IBM Carbon Design System - checked
Carbon number input guidance supports small incremental numeric changes, labels, helper text, default values, warning, error, disabled, read-only, and slider or text-input alternatives.
Adobe React Spectrum - checked
React Spectrum documents NumberField labels, min and max clamping, step values, stepper buttons, raw form submission, locale formatting, units, percentages, and currency values.
MDN Web Docs - checked
MDN documents native number-input min, max, step, required, automatic numeric invalidation, unsupported pattern matching, and server-side validation needs.
GOV.UK Design System - checked
GOV.UK numeric guidance cautions against type number without user research and provides specific error wording for numeric entry, bounds, and decimal money values.
Source trail checked: