Skip to content

Input OTP

Accessible one-time password component with copy paste functionality.

-

About

Input OTP is built on top of input-otp by @guilherme_rodz.

Pattern

Use the pattern prop to define a custom pattern for the OTP input.

Separator

-
-

Controlled

You can use the value and onChange props to control the input value.

Enter your one-time password.

Form

Please enter the one-time password sent to your phone.

Installation

  1. Follow Installation Guide

    To enable DinUI functionality in your project, you will need to properly set up Tailwind and install the necessary dependencies.
  2. All done

    You now can start using this component in your project.