Number Input
Formsatlas-number-inputExamples
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
| Input | Type | Default | Description |
|---|---|---|---|
| value two-way | number | 0 | |
| min | number | undefined | undefined | |
| max | number | undefined | undefined | |
| step | number | 1 | |
| placeholder | string | '0' | |
| disabled | boolean | false | |
| errors | readonly ValidationError.WithOptionalFieldTree[] | [] | [field] . |
| required | boolean | false | [field] . |
| invalid | boolean | false | [field] . |
| touched | boolean | false | [field] . |
| readonly | boolean | false | [field] . |
| pending | boolean | false | [field] . |
| name | string | '' | [field] . |
| ariaLabel | string | null | null | |
| inputId | string | undefined | undefined | id of the focusable element, so a visible <label atlasLabel for="…"> names it. Inside atlas-form-field the field supplies one. |
| ariaDescribedBy | string | null | null | aria-describedby , merged with the surrounding form field's hint or error. |
| class | string | '' | cn() ; yours win on conflicts. |
| Output | Payload | Description |
|---|---|---|
| touch | void |