Skip to main content

InputPromptTextProps

Agent Runtimes


Agent Runtimes / chat/prompt/InputPromptText / InputPromptTextProps

Interface: InputPromptTextProps

Defined in: chat/prompt/InputPromptText.tsx:23

Properties

disabled?

optional disabled?: boolean

Defined in: chat/prompt/InputPromptText.tsx:31

Whether the input is disabled


inputRef?

optional inputRef?: Ref<HTMLTextAreaElement>

Defined in: chat/prompt/InputPromptText.tsx:35

Ref forwarded to the underlying textarea


onChange

onChange: (value) => void

Defined in: chat/prompt/InputPromptText.tsx:27

Callback when the value changes

Parameters

value

string

Returns

void


onSubmit?

optional onSubmit?: () => void

Defined in: chat/prompt/InputPromptText.tsx:33

Callback when the user presses Enter (without Shift)

Returns

void


placeholder?

optional placeholder?: string

Defined in: chat/prompt/InputPromptText.tsx:29

Placeholder for the textarea


value

value: string

Defined in: chat/prompt/InputPromptText.tsx:25

Current input value