UseChatInputOptions
Defined in: src/components/editor/ChatPanel/ChatPanel.types.ts:477
Properties
attachmentsCount?
optionalattachmentsCount: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
0maxLines?
optionalmaxLines:number
Defined in: src/components/editor/ChatPanel/ChatPanel.types.ts:489
Maximum visible rows before scrolling.
Default
6onSubmit()?
optionalonSubmit: (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?
optionalsubmitKey:"enter"|"ctrl+enter"
Defined in: src/components/editor/ChatPanel/ChatPanel.types.ts:482
Key combo that triggers submit.
Default
"enter"