Components
← All components

Number Input

stimeo--number-input

A spinbutton: step increment/decrement, range clamping, and bound-disabled buttons.

  • Spinbutton

The stimeo--number-input controller implements the APG Spinbutton pattern. It owns the step logic itself (rather than the browser's native stepping) so behavior is identical for a native <input type="number"> and a custom role="spinbutton" host. Arrows step by step, PageUp/PageDown by pageStep, Home/End jump to a finite min/max, and typed values are clamped and snapped on change. The increment and decrement buttons are disabled at the bounds (focus returns to the input first), and stimeo--number-input:change is dispatched on every committed change.

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.