Input OTP
A one-time-password box input.
Four digits
Alphanumeric
Disabled
With separator
API reference
Inputs
| Prop | Type | Default | Description |
|---|---|---|---|
maxlength | number | 6 | Number of character boxes (length of the code). |
alphanumeric | boolean | false | Whether to allow letters as well as digits. |
groupSize | number | 0 | Insert a visual separator after every N boxes (0 = none). |
ariaLabel | string | 'One-time password' | Base accessible label; each box appends its position. |
Two-way models
Bind with [(name)], or one-way as an input.
| Prop | Type | Default | Description |
|---|---|---|---|
value | string | '' | Current code. Two-way bindable with `[(value)]`. |
disabled | boolean | false | Whether 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.