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