# OtpChangeDetails (@salmonui/inputs/otp-field)

> The OtpChangeDetails interface of @salmonui/inputs/otp-field: Second argument of onValueChange: 'input' typing or autofill, 'paste', 'reset' form reset.

Canonical: https://salmonui.dev/docs/reference/inputs/otp-field/OtpChangeDetails

```ts
import type { OtpChangeDetails } from '@salmonui/inputs/otp-field';
```

Entry index: https://salmonui.dev/docs/reference/inputs/otp-field (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/inputs/otp-field.md).

## Reference

Kind: interface

```ts
interface OtpChangeDetails {
    readonly source: 'keyboard' | 'pointer' | 'api';
    readonly reason: 'input' | 'paste' | 'reset';
}
```

Second argument of `onValueChange`: `'input'` typing or autofill, `'paste'`, `'reset'` form reset.

Members (2):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `source` | `readonly source: 'keyboard' \| 'pointer' \| 'api';` |  |  |
| `reason` | `readonly reason: 'input' \| 'paste' \| 'reset';` |  |  |
