UNPKG

react-otp-input-tailwind

Version:

A very easy to use react otp package that can be utilized seamlessly in your own project.

20 lines (16 loc) 587 B
/// <reference types="react" /> import * as React from 'react'; import React__default from 'react'; type OtpInputProps = { otp: string[]; setOtp: React__default.Dispatch<React__default.SetStateAction<string[]>>; parentClassName?: string; inputClassName?: string; }; declare const OtpInput: ({ otp, setOtp, parentClassName, inputClassName, }: OtpInputProps) => React__default.JSX.Element; declare const useOtpInput: (value: number) => { otp: any[]; setOtp: React.Dispatch<React.SetStateAction<any[]>>; otpValue: string; }; export { OtpInput, useOtpInput };