# OTP input

One-time code entry with one cell per character, auto-advance and paste.

Import from `@a31labs/rax/otp-input`.

## Usage

```tsx
<Field label="Verification code"><OtpInput value={code} onValueChange={setCode} onComplete={verify} /></Field>
```

## Rules

Props: `length` (default 6), `value`, `onValueChange`, `onComplete`, `mask`, `disabled`, `validationType` (default numeric), `name`, `aria-invalid`. Built on Base UI OTPField: one mono cell per character in the Input style; typing advances, Backspace steps back, pasting fills all cells, and the first cell carries `autocomplete="one-time-code"`. `id` goes to the first cell, so Field's label and error work; `aria-invalid` marks every cell.

Page: https://rax.a31.at/components/otp-input
