# Number input

Numeric entry with min, max, step, locale formatting and optional step buttons.

Import from `@a31labs/rax/number-input`.

## Usage

```tsx
<Field label="Replicas"><NumberInput min={1} max={10} value={n} onValueChange={setN} /></Field>
```

## Rules

Props: `value` (`number | null`), `defaultValue`, `onValueChange`, `min`, `max`, `step`, `format` (Intl.NumberFormatOptions), `locale`, `controls` (default true), plus native input props. Built on Base UI NumberField: same shape as Input, tabular figures, arrow keys step, and with `controls` there are ghost minus/plus buttons inside the right edge (hidden when read-only). `className` and `id` go to the wrapper (Base UI hands the id to the input); `ref`, `aria-*` and other native props go to the input, so it works inside Field.

Page: https://rax.a31.at/components/number-input
