UseChatInputReturn
Defined in: src/components/editor/ChatPanel/ChatPanel.types.ts:501
Properties
Section titled “Properties”clear: () =>
void
Defined in: src/components/editor/ChatPanel/ChatPanel.types.ts:507
Clear input and reset height
Returns
Section titled “Returns”void
handleChange
Section titled “handleChange”handleChange: (
event) =>void
Defined in: src/components/editor/ChatPanel/ChatPanel.types.ts:513
Change event handler — attach to textarea’s onChange
Parameters
Section titled “Parameters”ChangeEvent<HTMLTextAreaElement>
Returns
Section titled “Returns”void
handleKeyDown
Section titled “handleKeyDown”handleKeyDown: (
event) =>void
Defined in: src/components/editor/ChatPanel/ChatPanel.types.ts:511
Keyboard event handler — attach to textarea’s onKeyDown
Parameters
Section titled “Parameters”KeyboardEvent<HTMLTextAreaElement>
Returns
Section titled “Returns”void
setValue
Section titled “setValue”setValue: (
value) =>void
Defined in: src/components/editor/ChatPanel/ChatPanel.types.ts:505
Update input value
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”void
textareaRef
Section titled “textareaRef”textareaRef:
RefObject<HTMLTextAreaElement|null>
Defined in: src/components/editor/ChatPanel/ChatPanel.types.ts:509
Ref to attach to the textarea element
value:
string
Defined in: src/components/editor/ChatPanel/ChatPanel.types.ts:503
Current input value