An 6 digits input OTP.
About
Input OTP is built on top of input-otp by @guilherme_rodz.
Installation
Run the following command:
Update tailwind.config.js
Add the following animations to your tailwind.config.js
file:
Usage
Examples
Examples
Pattern
Use the pattern
prop to define a custom pattern for the OTP input.
Note: For patterns that contain characters, add the following props:
spellCheck="false"
to deactivate the spell checkerinputMode="text"
to open the correct virtual keyboard
An input OTP with alphanumeric pattern.
Separator
You can use the <InputOTPSeparator />
component to add a separator between the input groups.
An input OTP with custom separator.
Controlled
You can use the value
and onChange
props to control the input value.
Enter your one-time password.