# ConversationComposerProps (@salmonui/chat/conversation)

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

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

```ts
import type { ConversationComposerProps } 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 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 |  |
