Components
← All components

Number Input

stimeo--number-input

A field for stepping a number up and down that never leaves its range.

  • Core
  • Spinbutton

Steps a number by the amount you choose. The arrow keys move one step, the page keys move further, and Home and End jump to the lowest and highest values. A typed value is brought into range and snapped to the step as well. The stepping is worked out here rather than left to the browser, so a native number field and a custom one behave identically. A button reaching the end of the range stops being pressable, and focus moves back into the field first so the keyboard never loses its place. Every settled value is reported.

running

Keyboard

KeyAction
↑ / ↓ Increase / decrease by one step.
PageUp / PageDown Increase / decrease by the page step (default step × 10).
Home / End Jump to the minimum / maximum.