Skip to main content

InputPromptLexicalProps

Agent Runtimes


Agent Runtimes / chat/prompt/InputPromptLexical / InputPromptLexicalProps

Interface: InputPromptLexicalProps

Defined in: chat/prompt/InputPromptLexical.tsx:136

Properties

autoFocus?

optional autoFocus?: boolean

Defined in: chat/prompt/InputPromptLexical.tsx:148

Auto-focus the editor on mount


disabled?

optional disabled?: 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?

optional onSubmit?: () => void

Defined in: chat/prompt/InputPromptLexical.tsx:146

Callback when the user presses Enter (without Shift)

Returns

void


placeholder?

optional placeholder?: 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