# @salmonui/chat/conversation API reference

> 52 exported symbols of @salmonui/chat/conversation: 9 components, 33 interfaces, 9 types and 1 constant.

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

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

## Components

### Conversation

Kind: component

Page: https://salmonui.dev/docs/reference/chat/conversation/Conversation

```ts
const Conversation: typeof ConversationRoot & {
    readonly Header: typeof ConversationHeader;
    readonly Item: typeof ConversationItem;
    readonly ItemActions: typeof ConversationItemActions;
    readonly Suggestions: typeof ConversationSuggestions;
    readonly Composer: typeof ConversationComposer;
    readonly Dictation: typeof ConversationDictation;
    readonly JumpButton: typeof ConversationJumpButton;
    readonly Footer: typeof ConversationFooter;
};
```

`<Conversation variant="chat" | "assistant">` with its parts as static members (also exported flat).

### ConversationComposer

Kind: component

Page: https://salmonui.dev/docs/reference/chat/conversation/ConversationComposer

```ts
function ConversationComposer(props: ConversationComposerProps): ReactNode;
```

Props: [`ConversationComposerProps`](https://salmonui.dev/docs/reference/chat/conversation/ConversationComposerProps) (its members are the props)

### ConversationDictation

Kind: component

Page: https://salmonui.dev/docs/reference/chat/conversation/ConversationDictation

```ts
function ConversationDictation(props: ConversationDictationProps): ReactNode;
```

Microphone button of the composer, from the assistant chunk; disabled until recognition is available.

Props: [`ConversationDictationProps`](https://salmonui.dev/docs/reference/chat/conversation/ConversationDictationProps) (its members are the props)

### ConversationFooter

Kind: component

Page: https://salmonui.dev/docs/reference/chat/conversation/ConversationFooter

```ts
function ConversationFooter({ children, className, style }: ConversationFooterProps): ReactNode;
```

Props: [`ConversationFooterProps`](https://salmonui.dev/docs/reference/chat/conversation/ConversationFooterProps) (its members are the props)

### ConversationHeader

Kind: component

Page: https://salmonui.dev/docs/reference/chat/conversation/ConversationHeader

```ts
function ConversationHeader({ title, icon, children, toolbarLabel, className, style }: ConversationHeaderProps): ReactNode;
```

Props: [`ConversationHeaderProps`](https://salmonui.dev/docs/reference/chat/conversation/ConversationHeaderProps) (its members are the props)

### ConversationItem

Kind: component

Page: https://salmonui.dev/docs/reference/chat/conversation/ConversationItem

```ts
function ConversationItem(props: ConversationItemProps): ReactNode;
```

Default content of a feed item; use it in `renderItem` to decorate items.

Props: [`ConversationItemProps`](https://salmonui.dev/docs/reference/chat/conversation/ConversationItemProps) (its members are the props)

### ConversationItemActions

Kind: component

Page: https://salmonui.dev/docs/reference/chat/conversation/ConversationItemActions

```ts
function ConversationItemActions({ message, items, className }: ConversationItemActionsProps): ReactNode;
```

Message actions toolbar: APG Toolbar keys, visible on hover and focus within the item.

Props: [`ConversationItemActionsProps`](https://salmonui.dev/docs/reference/chat/conversation/ConversationItemActionsProps) (its members are the props)

### ConversationJumpButton

Kind: component

Page: https://salmonui.dev/docs/reference/chat/conversation/ConversationJumpButton

```ts
function ConversationJumpButton({ children, className, style }: ConversationJumpButtonProps): ReactNode;
```

Jump to the latest message, with the unread count. Hidden at the bottom.

Props: [`ConversationJumpButtonProps`](https://salmonui.dev/docs/reference/chat/conversation/ConversationJumpButtonProps) (its members are the props)

### ConversationSuggestions

Kind: component

Page: https://salmonui.dev/docs/reference/chat/conversation/ConversationSuggestions

```ts
function ConversationSuggestions({ items, heading, renderItem, className, style }: ConversationSuggestionsProps): ReactNode;
```

Quick replies: a labelled group of buttons, each sends its text.

Props: [`ConversationSuggestionsProps`](https://salmonui.dev/docs/reference/chat/conversation/ConversationSuggestionsProps) (its members are the props)

## Interfaces

### ConversationApi

Kind: interface

Page: https://salmonui.dev/docs/reference/chat/conversation/ConversationApi

```ts
interface ConversationApi {
    scrollToBottom(options?: {
        readonly behavior?: ScrollBehavior;
    }): void;
    scrollToMessage(id: string, options?: {
        readonly focus?: boolean;
    }): boolean;
    focus(): void;
    send(text: string): void;
    stop(): void;
    regenerate(id: string): void;
    readonly element: HTMLDivElement | null;
}
```

Members (7):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `scrollToBottom` | `scrollToBottom(options?: {     readonly behavior?: ScrollBehavior; }): void;` |  | Scrolls to the latest message. |
| `scrollToMessage` | `scrollToMessage(id: string, options?: {     readonly focus?: boolean; }): boolean;` |  | Scrolls a message into view (mounted or virtualized) and returns whether it exists. |
| `focus` | `focus(): void;` |  | Focuses the composer input. |
| `send` | `send(text: string): void;` |  | Sends `text` as the current user (runs `onBeforeSend` and the adapter). |
| `stop` | `stop(): void;` |  | Aborts a pending adapter response. |
| `regenerate` | `regenerate(id: string): void;` |  | Assistant variant: runs the adapter again for response `id` and keeps the previous text as an alternative. |
| `element` | `readonly element: HTMLDivElement \| null;` |  | The root element. |

### ConversationAttachEvent

Kind: interface

Page: https://salmonui.dev/docs/reference/chat/conversation/ConversationAttachEvent

```ts
interface ConversationAttachEvent {
    readonly attachments: readonly ConversationAttachment[];
}
```

Members (1):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `attachments` | `readonly attachments: readonly ConversationAttachment[];` |  |  |

### ConversationAttachment

Kind: interface

Page: https://salmonui.dev/docs/reference/chat/conversation/ConversationAttachment

```ts
interface ConversationAttachment {
    readonly id: string;
    readonly name: string;
    readonly size?: number;
    readonly type?: string;
    readonly url?: string;
    readonly file?: File;
}
```

A file attached to a message or pending in the composer.

Members (6):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `id` | `readonly id: string;` |  | Stable id (the upload transport's reference, or a generated id). |
| `name` | `readonly name: string;` |  |  |
| `size` | `readonly size?: number;` | optional | Size in bytes. |
| `type` | `readonly type?: string;` | optional | MIME type. |
| `url` | `readonly url?: string;` | optional | Where the stored file can be opened (from the `upload` transport). |
| `file` | `readonly file?: File;` | optional | The picked file, when no `upload` transport stored it. |

### ConversationAttachmentError

Kind: interface

Page: https://salmonui.dev/docs/reference/chat/conversation/ConversationAttachmentError

```ts
interface ConversationAttachmentError {
    readonly file: File;
    readonly reason: 'size' | 'count' | 'type' | 'upload';
    readonly error?: unknown;
}
```

A rejected file (too large, too many, wrong type) or a failed upload.

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `file` | `readonly file: File;` |  |  |
| `reason` | `readonly reason: 'size' \| 'count' \| 'type' \| 'upload';` |  |  |
| `error` | `readonly error?: unknown;` | optional |  |

### ConversationAttachmentEvent

Kind: interface

Page: https://salmonui.dev/docs/reference/chat/conversation/ConversationAttachmentEvent

```ts
interface ConversationAttachmentEvent {
    readonly attachment: ConversationAttachment;
    readonly message: ConversationMessage | null;
}
```

Members (2):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `attachment` | `readonly attachment: ConversationAttachment;` |  |  |
| `message` | `readonly message: ConversationMessage \| null;` |  | The message that carries it; null for a pending composer attachment. |

### ConversationAttachmentOptions

Kind: interface

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

```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. |

### ConversationBeforeAttachEvent

Kind: interface

Page: https://salmonui.dev/docs/reference/chat/conversation/ConversationBeforeAttachEvent

```ts
interface ConversationBeforeAttachEvent {
    readonly files: readonly File[];
    preventDefault(): void;
    readonly defaultPrevented: boolean;
}
```

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `files` | `readonly files: readonly File[];` |  |  |
| `preventDefault` | `preventDefault(): void;` |  |  |
| `defaultPrevented` | `readonly defaultPrevented: boolean;` |  |  |

### ConversationBeforeMentionSelectEvent

Kind: interface

Page: https://salmonui.dev/docs/reference/chat/conversation/ConversationBeforeMentionSelectEvent

```ts
interface ConversationBeforeMentionSelectEvent extends ConversationMentionSelectEvent {
    preventDefault(): void;
    readonly defaultPrevented: boolean;
}
```

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `preventDefault` | `preventDefault(): void;` |  |  |
| `defaultPrevented` | `readonly defaultPrevented: boolean;` |  |  |
| `user` | `user: ConversationMentionUser;` | inherited |  |
| `trigger` | `trigger: string;` | inherited |  |

### ConversationBeforeSendEvent

Kind: interface

Page: https://salmonui.dev/docs/reference/chat/conversation/ConversationBeforeSendEvent

```ts
interface ConversationBeforeSendEvent extends ConversationSendEvent {
    preventDefault(): void;
    readonly defaultPrevented: boolean;
}
```

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `preventDefault` | `preventDefault(): void;` |  | Keeps the draft in the composer and sends nothing. |
| `defaultPrevented` | `readonly defaultPrevented: boolean;` |  |  |
| `message` | `message: ConversationMessage;` | inherited | The message that is sent (cancellable in `onBeforeSend`). |

### ConversationChangeEvent

Kind: interface

Page: https://salmonui.dev/docs/reference/chat/conversation/ConversationChangeEvent

```ts
interface ConversationChangeEvent {
    readonly reason: ConversationChangeReason;
}
```

Members (1):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `reason` | `readonly reason: ConversationChangeReason;` |  |  |

### ConversationComposerProps

Kind: interface

Page: https://salmonui.dev/docs/reference/chat/conversation/ConversationComposerProps

```ts
interface ConversationComposerProps {
    readonly placeholder?: string;
    readonly value?: string;
    readonly defaultValue?: string;
    readonly onValueChange?: (value: string) => void;
    readonly clearable?: boolean;
    readonly disabled?: boolean;
    readonly rows?: number;
    readonly mentions?: readonly ConversationMentionConfig[];
    readonly onBeforeMentionSelect?: (event: ConversationBeforeMentionSelectEvent) => void;
    readonly onMentionSelect?: (event: ConversationMentionSelectEvent) => void;
    readonly attachments?: boolean | ConversationAttachmentOptions;
    readonly onBeforeAttach?: (event: ConversationBeforeAttachEvent) => void;
    readonly onAttach?: (event: ConversationAttachEvent) => void;
    readonly onAttachmentRemove?: (event: ConversationAttachmentEvent) => void;
    readonly onAttachmentError?: (error: ConversationAttachmentError) => void;
    readonly toolbar?: ReactNode;
    readonly className?: string;
    readonly style?: CSSProperties;
}
```

Members (18):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `placeholder` | `readonly placeholder?: string;` | optional |  |
| `value` | `readonly value?: string;` | optional | Controlled draft. |
| `defaultValue` | `readonly defaultValue?: string;` | optional |  |
| `onValueChange` | `readonly onValueChange?: (value: string) => void;` | optional |  |
| `clearable` | `readonly clearable?: boolean;` | optional | Shows a clear button while there is a draft. |
| `disabled` | `readonly disabled?: boolean;` | optional |  |
| `rows` | `readonly rows?: number;` | optional | Visible rows of the textarea (default 1; it grows with content). |
| `mentions` | `readonly mentions?: readonly ConversationMentionConfig[];` | optional |  |
| `onBeforeMentionSelect` | `readonly onBeforeMentionSelect?: (event: ConversationBeforeMentionSelectEvent) => void;` | optional |  |
| `onMentionSelect` | `readonly onMentionSelect?: (event: ConversationMentionSelectEvent) => void;` | optional |  |
| `attachments` | `readonly attachments?: boolean \| ConversationAttachmentOptions;` | optional | Enables attachments (`true` for defaults). |
| `onBeforeAttach` | `readonly onBeforeAttach?: (event: ConversationBeforeAttachEvent) => void;` | optional |  |
| `onAttach` | `readonly onAttach?: (event: ConversationAttachEvent) => void;` | optional |  |
| `onAttachmentRemove` | `readonly onAttachmentRemove?: (event: ConversationAttachmentEvent) => void;` | optional |  |
| `onAttachmentError` | `readonly onAttachmentError?: (error: ConversationAttachmentError) => void;` | optional |  |
| `toolbar` | `readonly toolbar?: ReactNode;` | optional | Extra controls next to the send button. |
| `className` | `readonly className?: string;` | optional |  |
| `style` | `readonly style?: CSSProperties;` | optional |  |

### ConversationContentContext

Kind: interface

Page: https://salmonui.dev/docs/reference/chat/conversation/ConversationContentContext

```ts
interface ConversationContentContext {
    readonly message: ConversationMessage;
    readonly streaming: boolean;
}
```

Context of `renderContent`.

Members (2):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `message` | `readonly message: ConversationMessage;` |  |  |
| `streaming` | `readonly streaming: boolean;` |  | The text is still streaming (called once per animation frame). |

### ConversationCustomAction

Kind: interface

Page: https://salmonui.dev/docs/reference/chat/conversation/ConversationCustomAction

```ts
interface ConversationCustomAction {
    readonly id: string;
    readonly label: string;
    readonly icon?: ReactNode;
}
```

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `id` | `readonly id: string;` |  |  |
| `label` | `readonly label: string;` |  |  |
| `icon` | `readonly icon?: ReactNode;` | optional |  |

### ConversationDictationProps

Kind: interface

Page: https://salmonui.dev/docs/reference/chat/conversation/ConversationDictationProps

```ts
interface ConversationDictationProps {
    readonly lang?: string;
    readonly recognizer?: () => SpeechRecognizer;
    readonly className?: string;
    readonly style?: CSSProperties;
}
```

`Conversation.Dictation`: a microphone button over the Inputs `useSpeechRecognition`.

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `lang` | `readonly lang?: string;` | optional | BCP 47 recognition language (default the document language). |
| `recognizer` | `readonly recognizer?: () => SpeechRecognizer;` | optional | Replaces the browser recognizer (the Inputs `SpeechRecognizer` contract). |
| `className` | `readonly className?: string;` | optional |  |
| `style` | `readonly style?: CSSProperties;` | optional |  |

### ConversationFooterProps

Kind: interface

Page: https://salmonui.dev/docs/reference/chat/conversation/ConversationFooterProps

```ts
interface ConversationFooterProps {
    readonly children?: ReactNode;
    readonly className?: string;
    readonly style?: CSSProperties;
}
```

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `children` | `readonly children?: ReactNode;` | optional |  |
| `className` | `readonly className?: string;` | optional |  |
| `style` | `readonly style?: CSSProperties;` | optional |  |

### ConversationHeaderProps

Kind: interface

Page: https://salmonui.dev/docs/reference/chat/conversation/ConversationHeaderProps

```ts
interface ConversationHeaderProps {
    readonly title?: ReactNode;
    readonly icon?: ReactNode;
    readonly children?: ReactNode;
    readonly toolbarLabel?: string;
    readonly className?: string;
    readonly style?: CSSProperties;
}
```

Members (6):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `title` | `readonly title?: ReactNode;` | optional |  |
| `icon` | `readonly icon?: ReactNode;` | optional |  |
| `children` | `readonly children?: ReactNode;` | optional | Toolbar items (buttons); arrow keys move between them (APG Toolbar). |
| `toolbarLabel` | `readonly toolbarLabel?: string;` | optional | Accessible name of the toolbar (default the title text). |
| `className` | `readonly className?: string;` | optional |  |
| `style` | `readonly style?: CSSProperties;` | optional |  |

### ConversationItemActionEvent

Kind: interface

Page: https://salmonui.dev/docs/reference/chat/conversation/ConversationItemActionEvent

```ts
interface ConversationItemActionEvent {
    readonly action: string;
    readonly message: ConversationMessage;
    readonly feedback?: 'positive' | 'negative' | undefined;
    preventDefault(): void;
    readonly defaultPrevented: boolean;
}
```

Members (5):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `action` | `readonly action: string;` |  | A built-in action (`'copy'`, `'reply'`, `'pin'`, `'delete'`, `'edit'`, `'regenerate'`, `'feedback'`) or a custom item's `id`. |
| `message` | `readonly message: ConversationMessage;` |  |  |
| `feedback` | `readonly feedback?: 'positive' \| 'negative' \| undefined;` | optional | `'feedback'`: the rating the click sets (`undefined` clears it). |
| `preventDefault` | `preventDefault(): void;` |  | Cancels the built-in follow-up of a built-in action. |
| `defaultPrevented` | `readonly defaultPrevented: boolean;` |  |  |

### ConversationItemActionsProps

Kind: interface

Page: https://salmonui.dev/docs/reference/chat/conversation/ConversationItemActionsProps

```ts
interface ConversationItemActionsProps {
    readonly message: ConversationMessage;
    readonly items?: readonly ConversationActionItem[];
    readonly className?: string;
}
```

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `message` | `readonly message: ConversationMessage;` |  |  |
| `items` | `readonly items?: readonly ConversationActionItem[];` | optional |  |
| `className` | `readonly className?: string;` | optional |  |

### ConversationItemProps

Kind: interface

Page: https://salmonui.dev/docs/reference/chat/conversation/ConversationItemProps

```ts
interface ConversationItemProps {
    readonly message: ConversationMessage;
    readonly children?: ReactNode;
    readonly className?: string;
    readonly style?: CSSProperties;
}
```

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `message` | `readonly message: ConversationMessage;` |  |  |
| `children` | `readonly children?: ReactNode;` | optional | Replaces the message text in the bubble. |
| `className` | `readonly className?: string;` | optional |  |
| `style` | `readonly style?: CSSProperties;` | optional |  |

### ConversationItemRenderContext

Kind: interface

Page: https://salmonui.dev/docs/reference/chat/conversation/ConversationItemRenderContext

```ts
interface ConversationItemRenderContext {
    readonly message: ConversationMessage;
    readonly index: number;
    readonly defaultItem: ReactNode;
}
```

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `message` | `readonly message: ConversationMessage;` |  |  |
| `index` | `readonly index: number;` |  |  |
| `defaultItem` | `readonly defaultItem: ReactNode;` |  | The default item content; wrap or decorate it. |

### ConversationJumpButtonProps

Kind: interface

Page: https://salmonui.dev/docs/reference/chat/conversation/ConversationJumpButtonProps

```ts
interface ConversationJumpButtonProps {
    readonly children?: ReactNode;
    readonly className?: string;
    readonly style?: CSSProperties;
}
```

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `children` | `readonly children?: ReactNode;` | optional |  |
| `className` | `readonly className?: string;` | optional |  |
| `style` | `readonly style?: CSSProperties;` | optional |  |

### ConversationLocaleText

Kind: interface

Page: https://salmonui.dev/docs/reference/chat/conversation/ConversationLocaleText

```ts
interface ConversationLocaleText {
    readonly feedLabel: LocaleMessage;
    readonly composerLabel: LocaleMessage;
    readonly placeholder: LocaleMessage;
    readonly send: LocaleMessage;
    readonly stop: LocaleMessage;
    readonly attach: LocaleMessage;
    readonly removeAttachment: LocaleMessage;
    readonly jumpToLatest: LocaleMessage;
    readonly unread: LocaleMessage;
    readonly typingOne: LocaleMessage;
    readonly typingTwo: LocaleMessage;
    readonly typingMany: LocaleMessage;
    readonly newMessage: LocaleMessage;
    readonly responseComplete: LocaleMessage;
    readonly messageActions: LocaleMessage;
    readonly copy: LocaleMessage;
    readonly reply: LocaleMessage;
    readonly pin: LocaleMessage;
    readonly unpin: LocaleMessage;
    readonly delete: LocaleMessage;
    readonly replyingTo: LocaleMessage;
    readonly cancelReply: LocaleMessage;
    readonly pinned: LocaleMessage;
    readonly forwarded: LocaleMessage;
    readonly status_sending: LocaleMessage;
    readonly status_sent: LocaleMessage;
    readonly status_delivered: LocaleMessage;
    readonly status_read: LocaleMessage;
    readonly status_error: LocaleMessage;
    readonly retry: LocaleMessage;
    readonly loadingOlder: LocaleMessage;
    readonly suggestionsLabel: LocaleMessage;
    readonly clear: LocaleMessage;
    readonly dictate?: LocaleMessage;
    readonly dictationUnsupported?: LocaleMessage;
    readonly edit?: LocaleMessage;
    readonly regenerate?: LocaleMessage;
    readonly helpful?: LocaleMessage;
    readonly notHelpful?: LocaleMessage;
    readonly previousResponse?: LocaleMessage;
    readonly nextResponse?: LocaleMessage;
    readonly responseIndex?: LocaleMessage;
    readonly reasoning?: LocaleMessage;
    readonly tool?: LocaleMessage;
    readonly toolRunning?: LocaleMessage;
    readonly toolDone?: LocaleMessage;
    readonly toolError?: LocaleMessage;
    readonly responding?: LocaleMessage;
}
```

Members (48):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `feedLabel` | `readonly feedLabel: LocaleMessage;` |  |  |
| `composerLabel` | `readonly composerLabel: LocaleMessage;` |  |  |
| `placeholder` | `readonly placeholder: LocaleMessage;` |  |  |
| `send` | `readonly send: LocaleMessage;` |  |  |
| `stop` | `readonly stop: LocaleMessage;` |  |  |
| `attach` | `readonly attach: LocaleMessage;` |  |  |
| `removeAttachment` | `readonly removeAttachment: LocaleMessage;` |  |  |
| `jumpToLatest` | `readonly jumpToLatest: LocaleMessage;` |  |  |
| `unread` | `readonly unread: LocaleMessage;` |  |  |
| `typingOne` | `readonly typingOne: LocaleMessage;` |  |  |
| `typingTwo` | `readonly typingTwo: LocaleMessage;` |  |  |
| `typingMany` | `readonly typingMany: LocaleMessage;` |  |  |
| `newMessage` | `readonly newMessage: LocaleMessage;` |  |  |
| `responseComplete` | `readonly responseComplete: LocaleMessage;` |  |  |
| `messageActions` | `readonly messageActions: LocaleMessage;` |  |  |
| `copy` | `readonly copy: LocaleMessage;` |  |  |
| `reply` | `readonly reply: LocaleMessage;` |  |  |
| `pin` | `readonly pin: LocaleMessage;` |  |  |
| `unpin` | `readonly unpin: LocaleMessage;` |  |  |
| `delete` | `readonly delete: LocaleMessage;` |  |  |
| `replyingTo` | `readonly replyingTo: LocaleMessage;` |  |  |
| `cancelReply` | `readonly cancelReply: LocaleMessage;` |  |  |
| `pinned` | `readonly pinned: LocaleMessage;` |  |  |
| `forwarded` | `readonly forwarded: LocaleMessage;` |  |  |
| `status_sending` | `readonly status_sending: LocaleMessage;` |  |  |
| `status_sent` | `readonly status_sent: LocaleMessage;` |  |  |
| `status_delivered` | `readonly status_delivered: LocaleMessage;` |  |  |
| `status_read` | `readonly status_read: LocaleMessage;` |  |  |
| `status_error` | `readonly status_error: LocaleMessage;` |  |  |
| `retry` | `readonly retry: LocaleMessage;` |  |  |
| `loadingOlder` | `readonly loadingOlder: LocaleMessage;` |  |  |
| `suggestionsLabel` | `readonly suggestionsLabel: LocaleMessage;` |  |  |
| `clear` | `readonly clear: LocaleMessage;` |  | Composer clear button. |
| `dictate` | `readonly dictate?: LocaleMessage;` | optional | `Conversation.Dictation` button. |
| `dictationUnsupported` | `readonly dictationUnsupported?: LocaleMessage;` | optional | `Conversation.Dictation` without speech recognition in the browser. |
| `edit` | `readonly edit?: LocaleMessage;` | optional |  |
| `regenerate` | `readonly regenerate?: LocaleMessage;` | optional |  |
| `helpful` | `readonly helpful?: LocaleMessage;` | optional |  |
| `notHelpful` | `readonly notHelpful?: LocaleMessage;` | optional |  |
| `previousResponse` | `readonly previousResponse?: LocaleMessage;` | optional |  |
| `nextResponse` | `readonly nextResponse?: LocaleMessage;` | optional |  |
| `responseIndex` | `readonly responseIndex?: LocaleMessage;` | optional | `{index}` of `{count}` responses. |
| `reasoning` | `readonly reasoning?: LocaleMessage;` | optional |  |
| `tool` | `readonly tool?: LocaleMessage;` | optional | Tool part heading: `{name}`, `{status}`. |
| `toolRunning` | `readonly toolRunning?: LocaleMessage;` | optional |  |
| `toolDone` | `readonly toolDone?: LocaleMessage;` | optional |  |
| `toolError` | `readonly toolError?: LocaleMessage;` | optional |  |
| `responding` | `readonly responding?: LocaleMessage;` | optional | Pending response (screen readers). |

### ConversationMentionConfig

Kind: interface

Page: https://salmonui.dev/docs/reference/chat/conversation/ConversationMentionConfig

```ts
interface ConversationMentionConfig {
    readonly trigger?: string;
    readonly items: readonly ConversationMentionUser[];
}
```

A mention trigger of the composer, through the Dropdowns `Mention`.

Members (2):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `trigger` | `readonly trigger?: string;` | optional | Trigger character, `'@'` by default. |
| `items` | `readonly items: readonly ConversationMentionUser[];` |  |  |

### ConversationMentionSelectEvent

Kind: interface

Page: https://salmonui.dev/docs/reference/chat/conversation/ConversationMentionSelectEvent

```ts
interface ConversationMentionSelectEvent {
    readonly user: ConversationMentionUser;
    readonly trigger: string;
}
```

Members (2):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `user` | `readonly user: ConversationMentionUser;` |  |  |
| `trigger` | `readonly trigger: string;` |  |  |

### ConversationMentionUser

Kind: interface

Page: https://salmonui.dev/docs/reference/chat/conversation/ConversationMentionUser

```ts
interface ConversationMentionUser {
    readonly id: string;
    readonly name: string;
}
```

Members (2):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `id` | `readonly id: string;` |  |  |
| `name` | `readonly name: string;` |  |  |

### ConversationMessage

Kind: interface

Page: https://salmonui.dev/docs/reference/chat/conversation/ConversationMessage

```ts
interface ConversationMessage {
    readonly id: string;
    readonly author: string;
    readonly text: string;
    readonly createdAt?: Date | string | number;
    readonly status?: ConversationMessageStatus;
    readonly replyTo?: string;
    readonly replyPreview?: ConversationReplyPreview;
    readonly pinned?: boolean;
    readonly forwarded?: boolean;
    readonly mentions?: readonly string[];
    readonly attachments?: readonly ConversationAttachment[];
    readonly parts?: readonly ConversationResponsePart[];
    readonly alternatives?: readonly string[];
    readonly feedback?: 'positive' | 'negative';
}
```

Members (14):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `id` | `readonly id: string;` |  | Stable id: the list key and the store key. |
| `author` | `readonly author: string;` |  | User id of the author. |
| `text` | `readonly text: string;` |  |  |
| `createdAt` | `readonly createdAt?: Date \| string \| number;` | optional |  |
| `status` | `readonly status?: ConversationMessageStatus;` | optional |  |
| `replyTo` | `readonly replyTo?: string;` | optional | Id of the message this one replies to. |
| `replyPreview` | `readonly replyPreview?: ConversationReplyPreview;` | optional | Preview of the reply target when it is not in `messages`. |
| `pinned` | `readonly pinned?: boolean;` | optional |  |
| `forwarded` | `readonly forwarded?: boolean;` | optional |  |
| `mentions` | `readonly mentions?: readonly string[];` | optional | User ids mentioned in `text` (rendered as mention tokens). |
| `attachments` | `readonly attachments?: readonly ConversationAttachment[];` | optional |  |
| `parts` | `readonly parts?: readonly ConversationResponsePart[];` | optional | Assistant responses: reasoning and tool parts, in arrival order. |
| `alternatives` | `readonly alternatives?: readonly string[];` | optional | Assistant responses: earlier responses to the same prompt, oldest first; `text` is the latest. |
| `feedback` | `readonly feedback?: 'positive' \| 'negative';` | optional | Assistant responses: the user's rating. |

### ConversationProps

Kind: interface

Page: https://salmonui.dev/docs/reference/chat/conversation/ConversationProps

```ts
interface ConversationProps {
    readonly variant?: 'chat' | 'assistant';
    readonly messages?: readonly ConversationMessage[];
    readonly defaultMessages?: readonly ConversationMessage[];
    readonly onMessagesChange?: (messages: readonly ConversationMessage[], event: ConversationChangeEvent) => void;
    readonly currentUser?: string;
    readonly users?: readonly ConversationUser[];
    readonly typingUsers?: readonly string[];
    readonly onBeforeSend?: (event: ConversationBeforeSendEvent) => void;
    readonly onSend?: (event: ConversationSendEvent) => void;
    readonly adapter?: ConversationAdapter;
    readonly adapterAuthor?: string;
    readonly onError?: (error: unknown) => void;
    readonly onStop?: (event: {
        readonly message: ConversationMessage | undefined;
    }) => void;
    readonly renderContent?: (text: string, context: ConversationContentContext) => ReactNode;
    readonly renderPending?: (context: {
        readonly message: ConversationMessage;
    }) => ReactNode;
    readonly renderReasoning?: (context: {
        readonly text: string;
        readonly message: ConversationMessage;
        readonly streaming: boolean;
    }) => ReactNode;
    readonly renderAttachment?: (context: {
        readonly attachment: ConversationAttachment;
        readonly message: ConversationMessage;
        readonly tabIndex: 0 | -1;
    }) => ReactNode;
    readonly renderTool?: Readonly<Record<string, (context: {
        readonly part: ConversationToolPart;
        readonly message: ConversationMessage;
    }) => ReactNode>>;
    readonly onReasoningClick?: (event: {
        readonly message: ConversationMessage;
        readonly open: boolean;
    }) => void;
    readonly onRetry?: (event: {
        readonly message: ConversationMessage;
    }) => void;
    readonly onTypingChange?: (event: ConversationTypingEvent) => void;
    readonly typingTimeout?: number;
    readonly timestamps?: boolean;
    readonly formatTimestamp?: Intl.DateTimeFormatOptions | ((date: Date, context: {
        readonly locale: string;
        readonly timeZone: string | undefined;
    }) => string);
    readonly locale?: string;
    readonly timeZone?: string;
    readonly dateSeparators?: boolean;
    readonly renderDateSeparator?: (context: {
        readonly date: Date;
        readonly label: string;
    }) => ReactNode;
    readonly layout?: 'bubbles' | 'compact';
    readonly renderEmpty?: () => ReactNode;
    readonly renderItem?: (context: ConversationItemRenderContext) => ReactNode;
    readonly renderAvatar?: (context: {
        readonly user: ConversationUser | undefined;
        readonly id: string;
    }) => ReactNode;
    readonly renderTyping?: (context: {
        readonly users: readonly ConversationUser[];
    }) => ReactNode;
    readonly itemActions?: readonly ConversationActionItem[] | {
        readonly prompt?: readonly ConversationActionItem[];
        readonly response?: readonly ConversationActionItem[];
    } | false;
    readonly onItemActionClick?: (event: ConversationItemActionEvent) => void;
    readonly onAttachmentClick?: (event: ConversationAttachmentEvent) => void;
    readonly hasOlder?: boolean;
    readonly onLoadOlder?: () => Promise<unknown> | void;
    readonly autoScroll?: 'whenAtBottom' | 'always' | 'never';
    readonly jumpButton?: boolean;
    readonly estimatedItemHeight?: number;
    readonly initialItemCount?: number;
    readonly localeText?: Partial<ConversationLocaleText>;
    readonly className?: string;
    readonly style?: CSSProperties;
    readonly classNames?: Partial<Record<ConversationPart, string>>;
    readonly styles?: Partial<Record<ConversationPart, CSSProperties>>;
    readonly children?: ReactNode;
    readonly ref?: Ref<ConversationApi>;
}
```

Members (49):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `variant` | `readonly variant?: 'chat' \| 'assistant';` | optional | `'chat'` (people, default) or `'assistant'` (prompts and responses). |
| `messages` | `readonly messages?: readonly ConversationMessage[];` | optional |  |
| `defaultMessages` | `readonly defaultMessages?: readonly ConversationMessage[];` | optional |  |
| `onMessagesChange` | `readonly onMessagesChange?: (messages: readonly ConversationMessage[], event: ConversationChangeEvent) => void;` | optional |  |
| `currentUser` | `readonly currentUser?: string;` | optional | User id of the person using the UI; their items align to the inline end (default `'user'`). |
| `users` | `readonly users?: readonly ConversationUser[];` | optional |  |
| `typingUsers` | `readonly typingUsers?: readonly string[];` | optional | User ids typing right now. |
| `onBeforeSend` | `readonly onBeforeSend?: (event: ConversationBeforeSendEvent) => void;` | optional |  |
| `onSend` | `readonly onSend?: (event: ConversationSendEvent) => void;` | optional |  |
| `adapter` | `readonly adapter?: ConversationAdapter;` | optional | Bot replies: runs after each send; streamed text is flushed once per animation frame. |
| `adapterAuthor` | `readonly adapterAuthor?: string;` | optional | Author id of adapter responses (default `'assistant'`). |
| `onError` | `readonly onError?: (error: unknown) => void;` | optional |  |
| `onStop` | `readonly onStop?: (event: {     readonly message: ConversationMessage \| undefined; }) => void;` | optional | Stop, `api.stop()`, a new send or regenerate aborted a pending response. |
| `renderContent` | `readonly renderContent?: (text: string, context: ConversationContentContext) => ReactNode;` | optional | Message text renderer, for example the application's Markdown renderer; default plain text with preserved line breaks. Never HTML strings: return React nodes. |
| `renderPending` | `readonly renderPending?: (context: {     readonly message: ConversationMessage; }) => ReactNode;` | optional | Assistant: the pending response before the first chunk (default skeleton lines). |
| `renderReasoning` | `readonly renderReasoning?: (context: {     readonly text: string;     readonly message: ConversationMessage;     readonly streaming: boolean; }) => ReactNode;` | optional | Assistant: a reasoning part (default a collapsed disclosure). |
| `renderAttachment` | `readonly renderAttachment?: (context: {     readonly attachment: ConversationAttachment;     readonly message: ConversationMessage;     readonly tabIndex: 0 \| -1; }) => ReactNode;` | optional | Replaces the chip of a sent attachment; `tabIndex` keeps the item's roving tab stop on interactive content. |
| `renderTool` | `readonly renderTool?: Readonly<Record<string, (context: {     readonly part: ConversationToolPart;     readonly message: ConversationMessage; }) => ReactNode>>;` | optional | Assistant: tool part renderers by tool name; others use the default summary. |
| `onReasoningClick` | `readonly onReasoningClick?: (event: {     readonly message: ConversationMessage;     readonly open: boolean; }) => void;` | optional | Assistant: the default reasoning disclosure opened or closed. |
| `onRetry` | `readonly onRetry?: (event: {     readonly message: ConversationMessage; }) => void;` | optional | Retry of a message with `status: 'error'`. |
| `onTypingChange` | `readonly onTypingChange?: (event: ConversationTypingEvent) => void;` | optional | Composer typing start and stop, at most one of each per burst. |
| `typingTimeout` | `readonly typingTimeout?: number;` | optional | Idle time in ms after which typing stops (default 3000). |
| `timestamps` | `readonly timestamps?: boolean;` | optional | Show timestamps (default true). |
| `formatTimestamp` | `readonly formatTimestamp?: Intl.DateTimeFormatOptions \| ((date: Date, context: {     readonly locale: string;     readonly timeZone: string \| undefined; }) => string);` | optional | `Intl.DateTimeFormatOptions` or a formatter (default hour and minute). |
| `locale` | `readonly locale?: string;` | optional | BCP 47 locale of timestamps (default `'en-US'`). |
| `timeZone` | `readonly timeZone?: string;` | optional | IANA time zone; without it, times render in UTC on the server and switch to the host zone after hydration. |
| `dateSeparators` | `readonly dateSeparators?: boolean;` | optional | Date separators between days (default false). |
| `renderDateSeparator` | `readonly renderDateSeparator?: (context: {     readonly date: Date;     readonly label: string; }) => ReactNode;` | optional |  |
| `layout` | `readonly layout?: 'bubbles' \| 'compact';` | optional | `'bubbles'` (default: own messages at the inline end) or `'compact'` (all at the start). |
| `renderEmpty` | `readonly renderEmpty?: () => ReactNode;` | optional |  |
| `renderItem` | `readonly renderItem?: (context: ConversationItemRenderContext) => ReactNode;` | optional |  |
| `renderAvatar` | `readonly renderAvatar?: (context: {     readonly user: ConversationUser \| undefined;     readonly id: string; }) => ReactNode;` | optional |  |
| `renderTyping` | `readonly renderTyping?: (context: {     readonly users: readonly ConversationUser[]; }) => ReactNode;` | optional |  |
| `itemActions` | `readonly itemActions?: readonly ConversationActionItem[] \| {     readonly prompt?: readonly ConversationActionItem[];     readonly response?: readonly ConversationActionItem[]; } \| false;` | optional | Actions of every item (chat default copy, reply, pin, delete); `false` hides them. Assistant default: copy, regenerate, feedback on responses; edit, copy on prompts (an object sets each). |
| `onItemActionClick` | `readonly onItemActionClick?: (event: ConversationItemActionEvent) => void;` | optional |  |
| `onAttachmentClick` | `readonly onAttachmentClick?: (event: ConversationAttachmentEvent) => void;` | optional |  |
| `hasOlder` | `readonly hasOlder?: boolean;` | optional | Older history exists (load on demand). |
| `onLoadOlder` | `readonly onLoadOlder?: () => Promise<unknown> \| void;` | optional | Loads older messages; the app prepends them to `messages`. |
| `autoScroll` | `readonly autoScroll?: 'whenAtBottom' \| 'always' \| 'never';` | optional | `'whenAtBottom'` (default), `'always'` or `'never'`. |
| `jumpButton` | `readonly jumpButton?: boolean;` | optional | Render the default jump-to-latest button (default true). |
| `estimatedItemHeight` | `readonly estimatedItemHeight?: number;` | optional | Estimated item height in px before measurement (default 64). |
| `initialItemCount` | `readonly initialItemCount?: number;` | optional | Items rendered on the server and before measurement (default 30). |
| `localeText` | `readonly localeText?: Partial<ConversationLocaleText>;` | optional |  |
| `className` | `readonly className?: string;` | optional |  |
| `style` | `readonly style?: CSSProperties;` | optional |  |
| `classNames` | `readonly classNames?: Partial<Record<ConversationPart, string>>;` | optional |  |
| `styles` | `readonly styles?: Partial<Record<ConversationPart, CSSProperties>>;` | optional |  |
| `children` | `readonly children?: ReactNode;` | optional | Parts: `Conversation.Header`, `.Suggestions`, `.Composer`, `.Footer`, `.JumpButton`. |
| `ref` | `readonly ref?: Ref<ConversationApi>;` | optional |  |

### ConversationReplyPreview

Kind: interface

Page: https://salmonui.dev/docs/reference/chat/conversation/ConversationReplyPreview

```ts
interface ConversationReplyPreview {
    readonly author: string;
    readonly text: string;
}
```

Quoted preview of a reply target that is not loaded.

Members (2):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `author` | `readonly author: string;` |  |  |
| `text` | `readonly text: string;` |  |  |

### ConversationRequest

Kind: interface

Page: https://salmonui.dev/docs/reference/chat/conversation/ConversationRequest

```ts
interface ConversationRequest {
    readonly messages: readonly ConversationMessage[];
    readonly text: string;
    readonly attachments: readonly ConversationAttachment[];
}
```

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `messages` | `readonly messages: readonly ConversationMessage[];` |  | History including the new message. |
| `text` | `readonly text: string;` |  |  |
| `attachments` | `readonly attachments: readonly ConversationAttachment[];` |  |  |

### ConversationSendEvent

Kind: interface

Page: https://salmonui.dev/docs/reference/chat/conversation/ConversationSendEvent

```ts
interface ConversationSendEvent {
    readonly message: ConversationMessage;
}
```

Members (1):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `message` | `readonly message: ConversationMessage;` |  | The message that is sent (cancellable in `onBeforeSend`). |

### ConversationSuggestionsProps

Kind: interface

Page: https://salmonui.dev/docs/reference/chat/conversation/ConversationSuggestionsProps

```ts
interface ConversationSuggestionsProps {
    readonly items: readonly string[];
    readonly heading?: ReactNode;
    readonly renderItem?: (context: {
        readonly item: string;
        readonly index: number;
    }) => ReactNode;
    readonly className?: string;
    readonly style?: CSSProperties;
}
```

Members (5):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `items` | `readonly items: readonly string[];` |  |  |
| `heading` | `readonly heading?: ReactNode;` | optional |  |
| `renderItem` | `readonly renderItem?: (context: {     readonly item: string;     readonly index: number; }) => ReactNode;` | optional |  |
| `className` | `readonly className?: string;` | optional |  |
| `style` | `readonly style?: CSSProperties;` | optional |  |

### ConversationTypingEvent

Kind: interface

Page: https://salmonui.dev/docs/reference/chat/conversation/ConversationTypingEvent

```ts
interface ConversationTypingEvent {
    readonly typing: boolean;
}
```

Members (1):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `typing` | `readonly typing: boolean;` |  |  |

### ConversationUser

Kind: interface

Page: https://salmonui.dev/docs/reference/chat/conversation/ConversationUser

```ts
interface ConversationUser {
    readonly id: string;
    readonly name: string;
    readonly avatar?: string | ReactNode;
    readonly status?: ReactNode;
}
```

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `id` | `readonly id: string;` |  |  |
| `name` | `readonly name: string;` |  |  |
| `avatar` | `readonly avatar?: string \| ReactNode;` | optional | Image URL or a node; initials of `name` otherwise. |
| `status` | `readonly status?: ReactNode;` | optional | Presence indicator next to the avatar. |

## Types

### ConversationActionItem

Kind: type

Page: https://salmonui.dev/docs/reference/chat/conversation/ConversationActionItem

```ts
type ConversationActionItem = ConversationBuiltInAction | ConversationCustomAction;
```

### ConversationAdapter

Kind: type

Page: https://salmonui.dev/docs/reference/chat/conversation/ConversationAdapter

```ts
type ConversationAdapter = (request: ConversationRequest, context: {
    readonly signal: AbortSignal;
}) => Promise<string> | AsyncIterable<string | ConversationResponsePart>;
```

Bot and assistant replies: a Promise is one final
response, an AsyncIterable streams text chunks and response parts. The
`signal` aborts on Stop, `api.stop()`, a new send and unmount.

### ConversationBuiltInAction

Kind: type

Page: https://salmonui.dev/docs/reference/chat/conversation/ConversationBuiltInAction

```ts
type ConversationBuiltInAction = 'copy' | 'reply' | 'pin' | 'delete' | 'edit' | 'regenerate' | 'feedback';
```

Built-in message actions: chat and assistant items.

### ConversationChangeReason

Kind: type

Page: https://salmonui.dev/docs/reference/chat/conversation/ConversationChangeReason

```ts
type ConversationChangeReason = 'send' | 'delete' | 'pin' | 'response' | 'retry' | 'regenerate' | 'feedback';
```

What caused a change: the composer, a built-in action, a bot response or the API.

### ConversationMessageStatus

Kind: type

Page: https://salmonui.dev/docs/reference/chat/conversation/ConversationMessageStatus

```ts
type ConversationMessageStatus = 'sending' | 'sent' | 'delivered' | 'read' | 'error';
```

Delivery status of a message.

### ConversationPart

Kind: type

Page: https://salmonui.dev/docs/reference/chat/conversation/ConversationPart

```ts
type ConversationPart = 'root' | 'scroller' | 'feed' | 'item' | 'composer' | 'typing';
```

### ConversationResponsePart

Kind: type

Page: https://salmonui.dev/docs/reference/chat/conversation/ConversationResponsePart

```ts
type ConversationResponsePart = {
    readonly type: 'text';
    readonly delta: string;
} | {
    readonly type: 'reasoning';
    readonly delta: string;
} | {
    readonly type: 'tool';
    readonly id: string;
    readonly name: string;
    readonly input: unknown;
    readonly output?: unknown;
    readonly status?: 'running' | 'done' | 'error';
};
```

A non-text part of an assistant response; a plain string chunk is a text delta.

### ConversationToolPart

Kind: type

Page: https://salmonui.dev/docs/reference/chat/conversation/ConversationToolPart

```ts
type ConversationToolPart = Extract<ConversationResponsePart, {
    readonly type: 'tool';
}>;
```

A tool part.

Members (6):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `type` | `type: "tool";` | inherited |  |
| `id` | `id: string;` | inherited |  |
| `name` | `name: string;` | inherited |  |
| `input` | `input: unknown;` | inherited |  |
| `output` | `output?: unknown;` | optional, inherited |  |
| `status` | `status?: "done" \| "error" \| "running";` | optional, inherited |  |

### ConversationUploadTransport

Kind: type

Page: https://salmonui.dev/docs/reference/chat/conversation/ConversationUploadTransport

```ts
type ConversationUploadTransport = (file: File, context: {
    readonly signal: AbortSignal;
    readonly onProgress: (loaded: number, total: number) => void;
}) => Promise<Partial<ConversationAttachment> | void>;
```

Upload transport (the Inputs `FileUpload` contract shape).

## Constants

### CONVERSATION_DEFAULT_LOCALE_TEXT

Kind: const

Page: https://salmonui.dev/docs/reference/chat/conversation/CONVERSATION_DEFAULT_LOCALE_TEXT

```ts
const CONVERSATION_DEFAULT_LOCALE_TEXT: ConversationLocaleText;
```
