# SmartPasteField (@salmonui/chat/smart-paste)

> The SmartPasteField interface of @salmonui/chat/smart-paste: What the adapter learns about one field.

Canonical: https://salmonui.dev/docs/reference/chat/smart-paste/SmartPasteField

```ts
import type { SmartPasteField } from '@salmonui/chat/smart-paste';
```

Entry index: https://salmonui.dev/docs/reference/chat/smart-paste (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/chat/smart-paste.md).

## Reference

Kind: interface

```ts
interface SmartPasteField {
    readonly name: string;
    readonly label?: string;
    readonly description?: string;
    readonly type: string;
    readonly options?: readonly string[];
    readonly multiple?: boolean;
}
```

What the adapter learns about one field.

Members (6):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `name` | `readonly name: string;` |  | The field's `name` (or `id` when it has no name); the key of the adapter's answer. |
| `label` | `readonly label?: string;` | optional | Text of the associated `<label>`, `aria-labelledby`, `aria-label` or group `<legend>`. |
| `description` | `readonly description?: string;` | optional | `data-salmon-paste-description`, else the `aria-describedby` text (the Field description). |
| `type` | `readonly type: string;` |  | Input `type`, or `'textarea'`, `'select'`, `'checkbox'`, `'radio'`, or the custom field's type. |
| `options` | `readonly options?: readonly string[];` | optional | Allowed values: `<option>` values, radio values, or the values of a checkbox group. |
| `multiple` | `readonly multiple?: boolean;` | optional | A multiple `<select>` or a checkbox group: the answer is an array. |
