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

PropTypeDefaultDescription
minnumber | nullnullMinimum allowed value, or null for no lower bound.
maxnumber | nullnullMaximum allowed value, or null for no upper bound.
stepnumber1Amount added or subtracted per step.
sizeNumberInputSize'default'Size preset controlling stepper button and field dimensions.
ariaLabelstring''Accessible label for the number field.
decreaseLabelstringAccessible label override for the decrease button.
increaseLabelstringAccessible label override for the increase button.

Two-way models

Bind with [(name)], or one-way as an input.

PropTypeDefaultDescription
valuenumber0Current number. Two-way bindable with `[(value)]`.
disabledbooleanfalseWhether 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.