Skip to content

UseChatInputOptions

Defined in: src/components/editor/ChatPanel/ChatPanel.types.ts:477

Properties

attachmentsCount?

optional attachmentsCount: number

Defined in: src/components/editor/ChatPanel/ChatPanel.types.ts:498

Number of currently queued attachments.

Used only to allow attachments-only submit when the textarea is empty. When greater than 0, pressing the submit key will fire onSubmit('') even if the input value is empty or whitespace-only.

Default

0

maxLines?

optional maxLines: number

Defined in: src/components/editor/ChatPanel/ChatPanel.types.ts:489

Maximum visible rows before scrolling.

Default

6

onSubmit()?

optional onSubmit: (value) => void

Defined in: src/components/editor/ChatPanel/ChatPanel.types.ts:484

Called when submit key is pressed and input is non-empty

Parameters

value

string

Returns

void


submitKey?

optional submitKey: "enter" | "ctrl+enter"

Defined in: src/components/editor/ChatPanel/ChatPanel.types.ts:482

Key combo that triggers submit.

Default

"enter"