Skip to content

Number Input

Forms

A numeric stepper input with increment/decrement buttons, min/max clamping, and step control.

atlas-number-input

Examples

Stepper

Buttons and arrow keys step by step within min and max .

Quantity: 3

Decimal steps and bounds

step can be a decimal; the value is rounded to the step's decimals, so 0.1 + 0.2 stays 0.3. min and max clamp both typing and the steppers.

Rating 3.5, dose 0.2 ml

In a form field

The field's label names the input and its hint states the bounds, which the steppers enforce.

Between 1 and 20 per team.

API

Generated from the library source, so it always matches the code.

AtlasNumberInputComponent atlas-number-input

InputTypeDefaultDescription
value two-waynumber0 Current numeric value (two-way bindable)
min number | undefinedundefined Minimum allowed value
max number | undefinedundefined Maximum allowed value
step number1 Step amount for increment/decrement
placeholder string'0' Placeholder text
disabled booleanfalse Whether the input is disabled
errors readonly ValidationError.WithOptionalFieldTree[][] Validation errors of the bound field. Set by Signal Forms [field] .
required booleanfalse Whether a value is required. Set by Signal Forms [field] .
invalid booleanfalse Whether the field is invalid. Set by Signal Forms [field] .
touched booleanfalse Whether the user has interacted with the field. Set by Signal Forms [field] .
readonly booleanfalse Whether the field is read-only. Set by Signal Forms [field] .
pending booleanfalse Whether async validation is running. Set by Signal Forms [field] .
name string'' Name of the field. Set by Signal Forms [field] .
ariaLabel string | nullnull Accessible name when no visible label names the control (use one or the other, WCAG 2.5.3).
inputId string | undefinedundefinedid of the focusable element, so a visible <label atlasLabel for="…"> names it. Inside atlas-form-field the field supplies one.
ariaDescribedBy string | nullnull Extra ids for aria-describedby , merged with the surrounding form field's hint or error.
class string'' Extra CSS classes, merged with the component's own through cn() ; yours win on conflicts.
OutputPayloadDescription
touchvoid Emits when the control loses focus, so Signal Forms marks the field touched.