InputPromptProps
Agent Runtimes / chat/prompt/InputPrompt / InputPromptProps
Interface: InputPromptProps
Defined in: chat/prompt/InputPrompt.tsx:35
Props for the InputPrompt component.
Properties
autoFocus?
optionalautoFocus?:boolean
Defined in: chat/prompt/InputPrompt.tsx:47
Auto-focus the input on mount
disabled?
optionaldisabled?:boolean
Defined in: chat/prompt/InputPrompt.tsx:57
Whether the prompt is disabled
focusTrigger?
optionalfocusTrigger?:number
Defined in: chat/prompt/InputPrompt.tsx:49
Trigger value change to refocus input
footerContent?
optionalfooterContent?:ReactNode
Defined in: chat/prompt/InputPrompt.tsx:67
Content rendered on the left side of the footer
footerRightContent?
optionalfooterRightContent?:ReactNode
Defined in: chat/prompt/InputPrompt.tsx:69
Content rendered on the right side of the footer, next to send/stop
headerContent?
optionalheaderContent?:ReactNode
Defined in: chat/prompt/InputPrompt.tsx:65
Content rendered in the header slot
isLoading?
optionalisLoading?:boolean
Defined in: chat/prompt/InputPrompt.tsx:41
Whether the agent is loading / streaming
onChange?
optionalonChange?: (value) =>void
Defined in: chat/prompt/InputPrompt.tsx:63
Controlled input onChange (external state)
Parameters
value
string
Returns
void
onSend
onSend: (
message) =>void
Defined in: chat/prompt/InputPrompt.tsx:43
Callback when a message is submitted
Parameters
message
string
Returns
void
onStop?
optionalonStop?: () =>void
Defined in: chat/prompt/InputPrompt.tsx:45
Callback when the stop button is clicked
Returns
void
padding?
optionalpadding?:number
Defined in: chat/prompt/InputPrompt.tsx:55
Custom outer padding (default: 3)
placeholder?
optionalplaceholder?:string
Defined in: chat/prompt/InputPrompt.tsx:39
Placeholder text
showBackground?
optionalshowBackground?:boolean
Defined in: chat/prompt/InputPrompt.tsx:53
Whether to use a subtle background
showBorderTop?
optionalshowBorderTop?:boolean
Defined in: chat/prompt/InputPrompt.tsx:51
Whether to show a border on top of the outer wrapper
sx?
optionalsx?:Record<string,unknown>
Defined in: chat/prompt/InputPrompt.tsx:59
Additional sx props for the outer container
value?
optionalvalue?:string
Defined in: chat/prompt/InputPrompt.tsx:61
Controlled input value (external state)
variant?
optionalvariant?:InputPromptVariant
Defined in: chat/prompt/InputPrompt.tsx:37
Input variant — "text" (default) or "lexical"