Pickers & inputs
JS behaviour
Number field
Steppers that repeat while held, drag-to-scrub on the label, min/max/step, Intl formatting in the locale’s digits and rolling digits.
Real scenarios
The component as it is used in a product — not a specimen grid.
Wireless headphones
1,850,000 IRR each · Total 3,700,000
Trip details
Up to 6 per room
Inspector — drag a label sideways
Important props
| Prop | Type | Default | What it does |
|---|---|---|---|
| min / max / step | number | null · null · 1 | Bounds and step; the value snaps onto the step grid. |
| format | array | null | Intl.NumberFormat options, e.g. ['style' => 'currency', 'currency' => 'USD']. |
| scrub | bool | true | Dragging the label sideways changes the value (Shift ×10). |
| wire:model / name | string | — | On the component; binds or posts the raw number. |
Snippet
<x-nx::number-field label="Guests" name="guests" :value="2" :min="1" :max="12"
wire:model.live="guests" />