UNPKG

antd-input-otp

Version:

An OTP Input Component based on Ant Design Component Library for React.

10 lines (9 loc) 568 B
import type { UseInputOTPProps } from './InputOTP.type'; export declare const useInputOTP: ({ autoSubmit, fieldLength, inputRegex, inputType, isPreserveFocus, onChange, value, }: UseInputOTPProps) => { handleFocus: (e: React.FocusEvent<HTMLInputElement>) => void; handleInput: (e: React.FormEvent<HTMLInputElement>) => void; handleKeyDown: (e: React.KeyboardEvent<HTMLInputElement>) => void; handleKeyPress: (e: React.KeyboardEvent<HTMLInputElement>) => void; handlePaste: (e: React.ClipboardEvent<HTMLInputElement>) => void; otp: string[]; };