Skip to content

UseChatInputOptions

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

Properties

maxLines?

optional maxLines: number

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

Maximum visible rows before scrolling.

Default

6

onSubmit()?

optional onSubmit: (value) => void

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

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:446

Key combo that triggers submit.

Default

"enter"