# TextChangeDetails (@salmonui/inputs/text-field)

> The TextChangeDetails interface of @salmonui/inputs/text-field: Second argument of onValueChange.

Canonical: https://salmonui.dev/docs/reference/inputs/text-field/TextChangeDetails

```ts
import type { TextChangeDetails } from '@salmonui/inputs/text-field';
```

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

## Reference

Kind: interface

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

Second argument of `onValueChange`.

Members (2):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `source` | `readonly source: 'keyboard' \| 'pointer' \| 'api';` |  |  |
| `reason` | `readonly reason: 'input' \| 'clear' \| 'reset';` |  | `'input'` typing or paste, `'clear'` clear button or Escape, `'reset'` form reset. |
