Form
NumberInput
Numeric text field with ▲▼ Stepper. Composes Input (type=number) and Stepper. Honors min / max / step; native arrow-key support.
Examples
Bounded counter
<NumberInput bind:value={qty} min={0} max={99} />Fractional step
<NumberInput bind:value={pct} min={0} max={1} step={0.05} />Props
| Prop | Type | Default | Description |
|---|---|---|---|
value | number | 0 | Bindable numeric value. |
min | number | — | Lower bound (inclusive). |
max | number | — | Upper bound (inclusive). |
step | number | 1 | Increment per Stepper click / arrow-key press. |
size | 'sm' | 'md' | 'md' | Input + Stepper dimension tier. |
Install
CLI
npx @a3tai/mittsu add number-input