Skip to content
Entangle UI v0.13.0

UseChatInputOptions

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

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.

0

optional maxLines?: number

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

Maximum visible rows before scrolling.

6

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

string

void


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

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

Key combo that triggers submit.

"enter"