Docs
Input OTP
Input OTP
Accessible one-time password component with copy paste functionality.
About
Input OTP is built on top of Bits UI's PinInput which is inspired by @guilherme_rodz's Input OTP component.
Installation
Install bits-ui
:
Copy and paste the component source files linked at the top of this page into your project.
Usage
Examples
Pattern
Use the pattern
prop to define a custom pattern for the OTP input.
Separator
You can use the InputOTP.Separator
component to add a separator between the groups of cells.
Form
On This Page