InputOtp
A one-time code in separate cells — typing, Backspace, arrows and paste work across the cells.
Basic
Six cells bound with ngModel. Type, paste a code, or let the phone fill it from an SMS (autocomplete="one-time-code").
Value: —
Integer only
integerOnly accepts digits only and opens the numeric keyboard on phones. (completed) fires when every cell is filled.
Waiting for 6 digits
Groups
groupSize adds a separator — 3 reads as 123–456.
Mask
mask hides the characters — for a PIN.
Length
length sets the number of cells; letters are allowed without integerOnly.
Sizes
small, medium and large; variant="filled" like every field.
States
disabled, readonly and invalid.
Form
Verification inside tx-field: the field names the group, the error shows after submit, (completed) submits by itself.
Design tokens
[dt] changes the inputOtp tokens — wider cells, more space.