Input mask

A text input formatted against a mask.

Date

Time

Card number

Postcode

API reference

Inputs

PropTypeDefaultDescription
maskstring''Mask pattern where `9` accepts a digit, `a` a letter, `*` an alphanumeric, and other chars are literals.
placeholderstring''Placeholder text shown when the input is empty.
inputmodestring''Value for the native `inputmode` attribute hinting the virtual keyboard.
namestring''Name attribute applied to the underlying input for form submission.

Two-way models

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

PropTypeDefaultDescription
valuestring''Current masked value. Two-way bindable with `[(value)]`.
disabledbooleanfalseWhether the input is disabled. Two-way bindable with `[(disabled)]`.

Every ng-blatui component also accepts a class input to merge extra Tailwind classes onto the host.