react-otp-input-tailwind
Version:
A very easy to use react otp package that can be utilized seamlessly in your own project.
16 lines (15 loc) • 355 B
TypeScript
import "../tailwind.css";
import React from "react";
type OtpInputProps = {
otp: string[];
setOtp: React.Dispatch<React.SetStateAction<string[]>>;
parentClassName?: string;
inputClassName?: string;
};
declare const OtpInput: ({
otp,
setOtp,
parentClassName,
inputClassName,
}: OtpInputProps) => React.JSX.Element;
export default OtpInput;