UseChatInputOptions
Defined in: src/components/editor/ChatPanel/ChatPanel.types.ts:477
Properties
Section titled “Properties”attachmentsCount?
Section titled “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
Section titled “Default”0maxLines?
Section titled “maxLines?”
optionalmaxLines?:number
Defined in: src/components/editor/ChatPanel/ChatPanel.types.ts:489
Maximum visible rows before scrolling.
Default
Section titled “Default”6onSubmit?
Section titled “onSubmit?”
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
Section titled “Parameters”string
Returns
Section titled “Returns”void
submitKey?
Section titled “submitKey?”
optionalsubmitKey?:"enter"|"ctrl+enter"
Defined in: src/components/editor/ChatPanel/ChatPanel.types.ts:482
Key combo that triggers submit.
Default
Section titled “Default”"enter"