Import
import { NuiOtp, NuiOtpInput } from '@needless-ui/angular/otp';NuiOtp
Draws the slots and wraps the input.
| Name | Type | Default | Description |
|---|---|---|---|
lengthInput | number | 6 | Number of characters. |
patternInput | 'digits' | 'alphanumeric' | 'digits' | digits, or alphanumeric for letters and digits. |
groupsInput | number[] | [] | Group sizes, drawn with a separator between them, such as [3, 3]. |
maskedInput | boolean | false | Draws dots instead of the characters. |
completedOutput | string | Emits the code each time the last slot is filled. |
NuiOtpInput
The real input. It gets the attributes a one-time code needs.
| Name | Type | Default | Description |
|---|---|---|---|
webOtpInput | boolean | false | Fills the code from an incoming SMS through the WebOTP API, where supported. |