# Input OTP
> A one-time-code field with a slot per character.
Source: https://native.shellui.dev/docs/components/form/input-otp
## Installation
```bash
shellui-native add input-otp
```
**Platforms:** MAUI · Avalonia.
## Usage
### Basic
**MAUI**
```xml
```
**Avalonia**
```xml
```
[Live preview](https://native.shellui.dev/preview/index.html?c=input-otp-basic)
## MAUI and Avalonia
- MAUI uses a hidden entry with the numeric keyboard; Avalonia puts an invisible text box over the slots.
- On Avalonia, `Focus()` focuses that text box.
## API
| Property | Type | Default | Description |
|---|---|---|---|
| `Length` | `int` | `6` | Number of slots. |
| `Value` | `string` | — | The entered code. Two-way bindable. |
| `IsNumeric` | `bool` | `true` | Digits only (numeric keyboard). False allows letters too. |
| `HasError` | `bool` | `false` | Shows the destructive border and ring. |
| Event | Arguments | Description |
|---|---|---|
| `ValueChanged` | `string` | User input only: setting Value from code or a binding doesn't raise ValueChanged or Completed. |
| `Completed` | `string` | Raised when every slot is filled. |