Number input
A numeric stepper with bounds.
Min / max
Step
Disabled
Sizes
Quantity stepper
Compose a cart/product quantity stepper from the number input — start at 1 and clamp the lower bound with [min]="1".
API reference
Inputs
| Prop | Type | Default | Description |
|---|---|---|---|
min | number | null | null | Minimum allowed value, or null for no lower bound. |
max | number | null | null | Maximum allowed value, or null for no upper bound. |
step | number | 1 | Amount added or subtracted per step. |
size | NumberInputSize | 'default' | Size preset controlling stepper button and field dimensions. |
ariaLabel | string | '' | Accessible label for the number field. |
decreaseLabel | string | — | Accessible label override for the decrease button. |
increaseLabel | string | — | Accessible label override for the increase button. |
Two-way models
Bind with [(name)], or one-way as an input.
| Prop | Type | Default | Description |
|---|---|---|---|
value | number | 0 | Current number. Two-way bindable with `[(value)]`. |
disabled | boolean | false | Whether the control is disabled. Two-way bindable with `[(disabled)]`. |
Types
NumberInputSize — Size preset controlling stepper button and field dimensions.
"default" | "lg" | "sm" Every ng-blatui component also accepts a class input to merge extra Tailwind classes onto the host.