# Input OTP

> An accessible one-time password input with copy and paste support.

Source: https://ui.cortexcn.dev/docs/components/input-otp

## Installation

```bash
npx shadcn@latest add @cortexcn/input-otp
```

## Usage

```tsx
import { InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator } from "@/components/input-otp";
```

## Examples

### Form

### Simple

### Digits only

### With separator

### Alphanumeric

### Disabled

### 4 digits

### Invalid state

Adapted from the [shadcn/ui Input OTP](https://ui.shadcn.com/docs/components/radix/input-otp) (MIT).