API reference: @salmonui/chat/smart-paste
SmartPasteCustomFieldinterface
import type { SmartPasteCustomField } from '@salmonui/chat/smart-paste';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.
| Name | Signature | Description |
|---|---|---|
fill | readonly fill: (value: unknown) => boolean | void; | Applies the adapter's value; return |
nameinherited | name: string; | The field's |
labeloptionalinherited | label?: string; | Text of the associated |
descriptionoptionalinherited | description?: string; |
|
typeinherited | type: string; | Input |
optionsoptionalinherited | options?: readonly string[]; | Allowed values: |
multipleoptionalinherited | multiple?: boolean; | A multiple |