Components/OTP Input

OTP InputNew

One-time-code entry on a single real input, with paste, a separator and complete, invalid and disabled states.

Two-factor authentication

Enter the 6-digit code from your authenticator app. Try 123456.

Alphanumeric, 4 characters

Disabled

Installation

$npx shadcn@latest add @opendraft/otp-input

Needs the @opendraft registry in your components.json. See Installation.

Dependencies

Source

The files the install command adds to your project. They're yours to edit.