OTP Input - Keep React
Table of Contents#
Default Input OTP#
A basic OTP input component designed for straightforward entry of one-time passwords, with automatic focus shift and input validation for a smooth user experience.
Group Input OTP#
An OTP input component that groups input fields together, providing a more organized and compact layout for entering one-time passwords efficiently.
Control Input OTP#
A more advanced OTP input component with value handling.
API Reference#
Here is a list of the props that you can pass to the input OTP component:
Property | Description | Type | Default |
---|---|---|---|
containerClassName | containerClassName style | string | None |
maxLength | Input maxLength | number | 6 |
pattern | Input pattern | regex | ^\d+$ |
Reference#
Our OTP component is built using the input-otp
package. For more information , follow the documentation input-otp.