UNPKG

payzli-ui-aryan

Version:

A custom react components library

32 lines (31 loc) 1.03 kB
import React, { Component } from "react"; import { IOtpInputProps } from "../../models/IOtpInputProps"; declare class OtpInput extends Component { props: IOtpInputProps; static defaultProps: { numInputs: number; onChange: (otp: any) => void; isDisabled: boolean; shouldAutoFocus: boolean; value: string; isInputSecure: boolean; }; state: { activeInput: number; }; getOtpValue: () => string[]; getPlaceholderValue: () => string | undefined; handleOtpChange: (otp: any) => void; isInputValueValid: (value: any) => boolean; focusInput: (input: any) => void; focusNextInput: () => void; focusPrevInput: () => void; changeCodeAtFocus: (value: any) => void; handleOnPaste: (e: any) => null | undefined; handleOnChange: (e: any) => void; handleOnKeyDown: (e: any) => void; handleOnInput: (e: any) => void; renderInputs: () => React.JSX.Element[]; render(): React.JSX.Element; } export default OtpInput;