NumberField
A numeric field with steppers, min/max/step clamping and locale formatting.
Group: Inputs · Kind: native · in the lite catalog
Preview
Section titled “Preview”example
disabled · true
Platforms
Section titled “Platforms”The same specimen painted by React, SwiftUI, Compose and gpui.




| Prop | Type | Required | Bindable | Description |
|---|---|---|---|---|
label |
string |
yes | – | The field label. |
name |
string |
yes | – | The field’s key in the submitted data. |
value |
number |
– | yes | The number; bind it. |
min |
number |
– | – | The lowest value. |
max |
number |
– | – | The highest value. |
step |
number |
– | – | What the steppers and arrow keys add; Shift multiplies by 10. Default 1. |
precision |
number |
– | – | Decimal places shown; defaults to the step’s. |
unit |
string |
– | – | A suffix after the number (kg, %). |
placeholder |
string |
– | – | Hint text while empty. |
disabled |
boolean |
– | – | Shows it inert. Default false. |
checks |
[check] |
– | – | Validation rules. |
validateOn |
change | blur | submit |
– | – | When the checks run. Default "blur". |
Events
Section titled “Events”on.change: runs an actionon.submit: runs an actionon.focus: runs an actionon.blur: runs an action
None.
Children
Section titled “Children”none
A2UI basic mapping
Section titled “A2UI basic mapping”No basic catalog component maps here.
Built from
Section titled “Built from”A native component: every renderer paints it directly.
Accessibility
Section titled “Accessibility”Role: spinbutton
spinbutton (valuemin/valuemax/valuenow)
| Keys | Action |
|---|---|
ArrowUp ArrowDown |
± step (Shift: ×10) |
PageUp PageDown |
± 10 steps |
Home End |
min/max |
Enter blur |
commit and clamp |
Theming
Section titled “Theming”Recipe parts: NumberField/root NumberField/label NumberField/field NumberField/decrement NumberField/increment NumberField/unit NumberField/description NumberField/error NumberField/input
Keyed by: disabled :hover :pressed :focus :disabled :checked :open :selected :invalid :dragover
Related
Section titled “Related”Form · FieldGroup · FormActions · Input · Textarea · Checkbox · Radio · ChoiceTiles