Skip to main content

InputPromptTextProps

Agent Runtimes


Agent Runtimes / chat/prompt/InputPromptText / InputPromptTextProps

Interface: InputPromptTextProps

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

Properties

disabled?

optional disabled?: boolean

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

Whether the input is disabled


inputRef?

optional inputRef?: Ref<HTMLTextAreaElement>

Defined in: src/chat/prompt/InputPromptText.tsx:37

Ref forwarded to the underlying textarea


onChange

onChange: (value) => void

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

Callback when the value changes

Parameters

value

string

Returns

void


onSubmit?

optional onSubmit?: () => void

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

Callback when the user presses Enter (without Shift)

Returns

void


placeholder?

optional placeholder?: string

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

Placeholder for the textarea


readOnly?

optional readOnly?: boolean

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

Whether the input is read-only


value

value: string

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

Current input value