InputPromptLexicalProps
Agent Runtimes / chat/prompt/InputPromptLexical / InputPromptLexicalProps
Interface: InputPromptLexicalProps
Defined in: chat/prompt/InputPromptLexical.tsx:136
Properties
autoFocus?
optionalautoFocus?:boolean
Defined in: chat/prompt/InputPromptLexical.tsx:148
Auto-focus the editor on mount
disabled?
optionaldisabled?:boolean
Defined in: chat/prompt/InputPromptLexical.tsx:144
Whether the input is disabled
onChange
onChange: (
value) =>void
Defined in: chat/prompt/InputPromptLexical.tsx:140
Callback when the value changes
Parameters
value
string
Returns
void
onSubmit?
optionalonSubmit?: () =>void
Defined in: chat/prompt/InputPromptLexical.tsx:146
Callback when the user presses Enter (without Shift)
Returns
void
placeholder?
optionalplaceholder?:string
Defined in: chat/prompt/InputPromptLexical.tsx:142
Placeholder for the editor
value
value:
string
Defined in: chat/prompt/InputPromptLexical.tsx:138
Current input value