InputPromptLexicalProps
Agent Runtimes / chat/prompt/InputPromptLexical / InputPromptLexicalProps
Interface: InputPromptLexicalProps
Defined in: src/chat/prompt/InputPromptLexical.tsx:148
Properties
autoFocus?
optionalautoFocus?:boolean
Defined in: src/chat/prompt/InputPromptLexical.tsx:162
Auto-focus the editor on mount
disabled?
optionaldisabled?:boolean
Defined in: src/chat/prompt/InputPromptLexical.tsx:156
Whether the input is disabled
onChange
onChange: (
value) =>void
Defined in: src/chat/prompt/InputPromptLexical.tsx:152
Callback when the value changes
Parameters
value
string
Returns
void
onSubmit?
optionalonSubmit?: () =>void
Defined in: src/chat/prompt/InputPromptLexical.tsx:160
Callback when the user presses Enter (without Shift)
Returns
void
placeholder?
optionalplaceholder?:string
Defined in: src/chat/prompt/InputPromptLexical.tsx:154
Placeholder for the editor
readOnly?
optionalreadOnly?:boolean
Defined in: src/chat/prompt/InputPromptLexical.tsx:158
Whether the input is read-only
value
value:
string
Defined in: src/chat/prompt/InputPromptLexical.tsx:150
Current input value