smooth-otp
Version:
A fast and small OTP input component for React/Nextjs - Debraj
14 lines (13 loc) • 382 B
TypeScript
import React from "react";
import "./styles.css";
export interface SmoothOTPProps {
length?: number;
onComplete: (otp: string) => void;
type?: "slots" | "single-field";
className?: string;
inputClassName?: string;
spacing?: number | string;
separator?: string;
separatorClassName?: string;
}
export declare const SmoothOTP: React.FC<SmoothOTPProps>;