Data Input

NumberInput

Definition

Collects numeric values.

Usage

Use NumberInput for quantities, amounts, percentages, and bounded numeric fields.

Attributes

  • label or i18n required. Accessible field label.
  • value required. Number value or writable state binding.
  • min, max, step. Numeric constraints.
  • units. Unit text shown with the input.
  • isIntegerOnly. Restricts input to integers.

Example

xml
<NumberInput label="Quantity" value="$form.quantity" min="1" step="1" units="items" />