UNPKG

formik-otp-input

Version:

A React component for one-time-password.

21 lines (20 loc) 728 B
import React from 'react'; interface OtpInputProps { length: number; value: string; onChange: (e: React.ChangeEvent<HTMLInputElement>) => void; onFullFill: () => void; autoComplete?: string; setFieldError: (field: string, message: string | undefined) => void; setFieldTouched: (field: string, isTouched: boolean, shouldValidate?: boolean) => void; autoFocus?: boolean; autoSubmit?: boolean; inputType?: string | 'alphanumeric' | 'numeric' | 'alphabetic'; onBlur: (e: React.FocusEvent<any>) => void; textColor?: string; backgroundColor?: string; highlightColor?: string; borderColor?: string; } declare const OtpInput: React.FC<OtpInputProps>; export default OtpInput;