Component changelog
NumberField changelog
Component-specific release notes collected from the full changelog. This page filters the published entries that mention NumberField.
Release
v1.2.0
Minor Changes
-
07e6783: Checkbox, Switch, Select and NumberField work inside
Field.RootwithoutField.Control: they take the field's id (soField.Labelnames them), name, disabled and required state, and getaria-describedbyfromField.DescriptionandField.Errorplusaria-invalidwhen the field is invalid. A control's own props still win. -
a265579: Checkbox, Switch, Select and NumberField inside
Field.Rootnow report focus, blur and edits to the field, sodata-focused,data-touchedanddata-dirtyfollow them, and they carry the field's state attributes themselves. Fields also getdata-filledwhile the control holds a value (non-empty text, a checked box, a picked option). Moving between a NumberField's input and its buttons doesn't count as leaving the field. -
befc825: Checkbox takes
indeterminate,uncheckedValue,formandinputRef; Switch takesuncheckedValue,formandinputRef; RadioGroup takesformandinputRef. Form reset now also works with aformoutside the tree. Slider takesthumbCollisionBehavior(none,push,swap),format/locale,largeStepandform; its thumbs takegetAriaLabel,getAriaValueTextandinputRef. NumberField takesallowOutOfRange,snapOnStep,formandinputRef. -
07e6783: Add
formatandlocaleto NumberField. Withformat(Intl.NumberFormat options), the value shows as currency, a percent, a unit or with grouping; people can type formatted text such as "2,000" or "1.234,5", and it's reformatted when they leave the field. The value stays a plain number (25% is 0.25) and forms submit that number. The input keeps spinbutton semantics witharia-valuetext. -
07e6783: Add
NumberField.ScrubArea: drag over it (for example a short label) to change the value, like the inputs in design tools. Moving right or up increments by onestepperpixelSensitivitypixels (default 2), Shift useslargeStep,direction="vertical"switches the axis, and min and max still apply. It carriesdata-scrubbingwhile dragging. In Clarity it becomes a leading column of the field. -
07e6783: Add
smallStepto NumberField: Alt/Option + ArrowUp/ArrowDown moves by it for fine adjustments (defaults tostep / 10). Shift still useslargeStep. -
07e6783: Add
onValueCommitto NumberField: it's called with the settled value on blur or Enter after typing, when a held stepper button is released, and right away for keyboard steps, and only when the value actually changed. Use it to save or validate without reacting to every keystroke. -
07e6783: Add
allowWheelScrubto NumberField: while the input is focused, the mouse wheel steps the value (Shift useslargeStep) and the page doesn't scroll. Scrolling past an unfocused field never changes it.
Release
v1.1.2
Patch Changes
- c0b83c0Add stable NumberField part attributes and invalid state propagation.
Release
v1.0.0
Patch Changes
- 465e6d1Document NumberField keyboard interactions and ARIA spinbutton references.