InputPromptTextProps
Agent Runtimes / chat/prompt/InputPromptText / InputPromptTextProps
Interface: InputPromptTextProps
Defined in: chat/prompt/InputPromptText.tsx:23
Properties
disabled?
optionaldisabled?:boolean
Defined in: chat/prompt/InputPromptText.tsx:31
Whether the input is disabled
inputRef?
optionalinputRef?: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?
optionalonSubmit?: () =>void
Defined in: chat/prompt/InputPromptText.tsx:33
Callback when the user presses Enter (without Shift)
Returns
void
placeholder?
optionalplaceholder?: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