NumberField

A typed numeric input — Intl-formatted (decimal/currency/percent/unit) with a stepper, spinbutton a11y, and a raw number value.

Stablev0.3.0@garn/ui/number-field

Default

A labelled quantity field with a floor of 0.

Currency

Currency formatting via formatOptions.

Percent

Percent style — the value is the fraction, displayed as a percentage.

Bounded

min/max clamp; the stepper disables at each bound.

States

Disabled and invalid.

Affordances

clearable and loading — both render to the left of the stepper, which always stays pinned at the trailing edge.

Appearances

outline · soft · ghost — the shared field-appearance axis, inherited from Input.

Sizes

xs · sm · md · lg · xl.