otp-gen-ui
Version:
Generate OTP and render customizable input boxes for React
14 lines (10 loc) • 319 B
TypeScript
import React from 'react';
declare const generateOtp: (length?: number) => string;
interface OtpBoxProps {
length?: number;
onChange?: (otp: string) => void;
style?: React.CSSProperties;
inputStyle?: React.CSSProperties;
}
declare const OtpBox: React.FC<OtpBoxProps>;
export { OtpBox, generateOtp };