# ConversationAttachmentOptions (@salmonui/chat/conversation)

> The ConversationAttachmentOptions interface of @salmonui/chat/conversation.

Canonical: https://salmonui.dev/docs/reference/chat/conversation/ConversationAttachmentOptions

```ts
import type { ConversationAttachmentOptions } from '@salmonui/chat/conversation';
```

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

## Reference

Kind: interface

```ts
interface ConversationAttachmentOptions {
    readonly accept?: string;
    readonly maxSize?: number;
    readonly maxCount?: number;
    readonly dropTarget?: 'composer' | 'conversation' | 'none';
    readonly upload?: ConversationUploadTransport;
    readonly renderPreview?: (context: {
        readonly attachment: ConversationAttachment;
        readonly progress: number | null;
        readonly error: unknown;
        readonly remove: () => void;
    }) => ReactNode;
}
```

Members (6):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `accept` | `readonly accept?: string;` | optional | The file input's `accept`. |
| `maxSize` | `readonly maxSize?: number;` | optional | Largest accepted file in bytes. |
| `maxCount` | `readonly maxCount?: number;` | optional | Most files per message. |
| `dropTarget` | `readonly dropTarget?: 'composer' \| 'conversation' \| 'none';` | optional | Where dropped files are accepted (default `'composer'`; `'none'` disables drag and drop). |
| `upload` | `readonly upload?: ConversationUploadTransport;` | optional | Stores a file before sending; without it, attachments carry the `File`. |
| `renderPreview` | `readonly renderPreview?: (context: {     readonly attachment: ConversationAttachment;     readonly progress: number \| null;     readonly error: unknown;     readonly remove: () => void; }) => ReactNode;` | optional | Chip of a pending attachment in the composer. |
