Logo Docs

Input number

Input number

Numeric field with KtUI lifecycle on the native input[type=number], optional decrement/increment buttons, and custom events. Not the wizard Stepper—see Stepper for multi-step flows.

Basic

Min, max, and step

Use native min, max, and step on the number input. Optional + / − controls use the browser’s stepUp() / stepDown() so behavior matches native constraints.

Native min, max, and step apply to typing and spinners.

With buttons

Pair data-mv-input-number-decrement and data-mv-input-number-increment with accessible names (aria-label or visible text) on the buttons.

Disabled

Use the native disabled attribute on the input. Decrement/increment handlers no-op while disabled.

Native disabled — increment/decrement hooks are ignored.