react-dynamic-otp-inputs
Version:
react OTP input
10 lines (9 loc) • 397 B
TypeScript
import React from 'react';
export interface OtpInputProps {
numberOfInputFields: number;
inputBoxStyle?: React.CSSProperties;
onchange?: (e: React.ChangeEvent<HTMLInputElement>, index: number) => void;
}
declare const OtpInput: ({ numberOfInputFields, inputBoxStyle, onchange, }: OtpInputProps) => import("react/jsx-runtime").JSX.Element;
export { OtpInput };
export default OtpInput;