Number Field
Numeric-input foundation where Root owns bounds, step, and precision while controls stay composable.
Runtime ownership
useNumberFieldRoot comes from @varo-ui/headless; H5 and Weapp share numeric constraints.
Demo
Parts
| Part | Role |
|---|---|
NumberFieldRoot | Numeric state and constraints |
NumberFieldDecrement | Decrease action |
NumberFieldInput | Native numeric input |
NumberFieldIncrement | Increase action |
State and events
- State:
value,min,max,step,precision, andreadonly - Events:
update:valueandvalueChange.
Platform notes
Bounds and precision align across targets; native input events stay runtime-owned.