Skip to main content

About

Input OTP is built on top of Bits UI’s PinInput which is inspired by @guilherme_rodz’s Input OTP component.

Installation

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.

Controlled

Example showing controlled InputOTP component.

Form

Example showing InputOTP in a form.