# Otp API

> Auto-generated API reference for `Otp` from @vuetify/v0 (Vuetify0).
> Source of truth: https://0.vuetifyjs.com/api/otp

## Related

- https://0.vuetifyjs.com/components/forms/otp
- https://0.vuetifyjs.com/composables/forms/create-otp
- https://0.vuetifyjs.com/components/forms/input

## Otp.Root

### Props

| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| `modelValue` | `string \| undefined` | `""` | no | Joined OTP value |
| `length` | `number \| undefined` | `6` | no | Number of characters (default: 6) |
| `pattern` | `any` | `"numeric"` | no | Per-character pattern (default: 'numeric') |
| `disabled` | `MaybeRefOrGetter<boolean> \| undefined` | `false` | no | Disable interaction |
| `readonly` | `MaybeRefOrGetter<boolean> \| undefined` | — | no | Show value, prevent changes |
| `ariaLabel` | `string \| undefined` | — | no | Accessible name for the group |
| `ariaLabelledby` | `string \| undefined` | — | no | ID of element that labels this group |
| `ariaDescribedby` | `string \| undefined` | — | no | ID of element that describes this group |
| `name` | `string \| undefined` | — | no | Form field name — triggers hidden input |
| `namespace` | `string \| undefined` | `"v0:otp:root"` | no | Namespace for context provision |

### Events

| Name | Type | Description |
|---|---|---|
| `update:model-value` | `[value: string]` | — |
| `complete` | `[value: string]` | — |

### Slots

| Name | Type | Description |
|---|---|---|
| `default` | `OtpRootSlotProps` | — |

## Otp.HiddenInput

### Props

| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| `namespace` | `string \| undefined` | `"v0:otp:root"` | no | Namespace for context injection from parent Otp.Root |

## Otp.Item

### Props

| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| `index` | `number` | — | yes | 0-based position within the OTP value |
| `namespace` | `string \| undefined` | `"v0:otp:root"` | no | Namespace for context injection from parent Otp.Root |

### Slots

| Name | Type | Description |
|---|---|---|
| `default` | `OtpItemSlotProps` | — |
