Skip to content

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 ​

Package@varo-ui/headless

Parts ​

PartRole
NumberFieldRootNumeric state and constraints
NumberFieldDecrementDecrease action
NumberFieldInputNative numeric input
NumberFieldIncrementIncrease action

State and events ​

  • State:value, min, max, step, precision, and readonly
  • Events:update:value and valueChange.

Platform notes

Bounds and precision align across targets; native input events stay runtime-owned.