Skip to main content

InputPromptLexicalProps

Agent Runtimes


Agent Runtimes / chat/prompt/InputPromptLexical / InputPromptLexicalProps

Interface: InputPromptLexicalProps

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

Properties

autoFocus?

optional autoFocus?: boolean

Defined in: src/chat/prompt/InputPromptLexical.tsx:162

Auto-focus the editor on mount


disabled?

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

optional onSubmit?: () => void

Defined in: src/chat/prompt/InputPromptLexical.tsx:160

Callback when the user presses Enter (without Shift)

Returns

void


placeholder?

optional placeholder?: string

Defined in: src/chat/prompt/InputPromptLexical.tsx:154

Placeholder for the editor


readOnly?

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