length | 4 | Number of OTP boxes. |
|---|
numbersOnly | false | Reject non-numeric characters. |
|---|
autoSubmit | false | Emit when every box is filled. |
|---|
autoSubmitValidOnly | false | Only auto-submit clean accepted input with no invalid Angular form state. |
|---|
autoFocus | false | Focus the first box after browser render. |
|---|
webOtp | false | Enable supported Web OTP SMS autofill. |
|---|
isPassword | false | Mask input values with password boxes. |
|---|
maskDelay | 0 | Temporarily reveal typed or pasted password-mode characters. |
|---|
showError | false | Apply legacy empty-box error styling on blur. |
|---|
errorMessages | {} | Override Angular form validation messages. |
|---|
errorMessageClass | '' | Class applied to the rendered error message. |
|---|
loadingLabel | 'Verifying...' | Text beside the loading spinner. |
|---|
loadingContainerClass, loadingSpinnerClass | '' | Classes for the loading row and spinner. |
|---|
ariaLabel | 'One-time password' | Accessible label for the full OTP group. |
|---|
inputAriaLabel | 'One-time password digit {index} of {length}' | Accessible label template for each box. |
|---|
resendAriaLabel | 'Resend verification code' | Accessible label for the resend button. |
|---|
resendCountdownAriaLabel | 'Resend verification code available in {seconds} seconds' | Live resend countdown announcement. |
|---|
showCaps | false | Convert letters to uppercase. |
|---|
containerClass, inputClass | '' | Classes for the OTP container and input boxes. |
|---|
containerStyles, inputStyles | {} | Inline styles for the container or inputs; inputStyles can be an array. |
|---|
placeholder | '' | Placeholder shown in each input. |
|---|
separator | '' | Text shown between OTP boxes. |
|---|
resend | 0 | Enables the resend countdown when greater than zero. |
|---|
resendLabel, resendContainerClass, resendLabelClass, resendTimerClass | '' | Resend text and styling hooks. |
|---|
theme | 'default' | Built-in preset: 'default', 'banking', 'minimal', 'rounded', 'underline', 'glass', 'light', or 'dark'. |
|---|
size | 'md' | Built-in input size preset: 'sm', 'md', or 'lg'. |
|---|
variant | 'box' | Built-in input structure preset: 'box', 'underline', 'filled', or 'outline'. |
|---|
success | false | Shows success styling and the success status row. |
|---|
successLabel | 'Verified' | Success status text shown when success state is active. |
|---|
clearOnError | false | Clears the OTP value when setError(message) is called. |
|---|
focusOnClear | false | Focuses the first box after clear() or clearOnError. |
|---|