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

> The SmartPasteCustomField interface of @salmonui/chat/smart-paste: A field the hook cannot reach as a native control (for example a Salmon Select): described and filled by the application.

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

```ts
import type { SmartPasteCustomField } 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 SmartPasteCustomField extends SmartPasteField {
    readonly fill: (value: unknown) => boolean | void;
}
```

A field the hook cannot reach as a native control (for example a Salmon `Select`): described and filled by the application.

Members (7):

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