ngx-otp-code
Version:
Customizable OTP input component for Angular with Web OTP support.
14 lines (13 loc) • 384 B
TypeScript
export declare const OTP_INPUT_TYPES: readonly ["text", "number"];
export type OtpInputType = typeof OTP_INPUT_TYPES[number];
export interface NgxOtpConfig {
length?: number;
inputType?: OtpInputType;
placeholder?: string;
autoFocus?: boolean;
isAlpha?: boolean;
mask?: boolean;
useWebOtp?: boolean;
inputClass?: string;
containerClass?: string;
}