Input OTP

A one-time-password box input.

Four digits

Alphanumeric

Disabled

With separator

API reference

Inputs

PropTypeDefaultDescription
maxlengthnumber6Number of character boxes (length of the code).
alphanumericbooleanfalseWhether to allow letters as well as digits.
groupSizenumber0Insert a visual separator after every N boxes (0 = none).
ariaLabelstring'One-time password'Base accessible label; each box appends its position.

Two-way models

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

PropTypeDefaultDescription
valuestring''Current code. 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.