Skip to main content

InputPromptProps

Agent Runtimes


Agent Runtimes / chat/prompt/InputPrompt / InputPromptProps

Interface: InputPromptProps

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

Props for the InputPrompt component.

Properties

autoFocus?

optional autoFocus?: boolean

Defined in: chat/prompt/InputPrompt.tsx:47

Auto-focus the input on mount


disabled?

optional disabled?: boolean

Defined in: chat/prompt/InputPrompt.tsx:57

Whether the prompt is disabled


focusTrigger?

optional focusTrigger?: number

Defined in: chat/prompt/InputPrompt.tsx:49

Trigger value change to refocus input


footerContent?

optional footerContent?: ReactNode

Defined in: chat/prompt/InputPrompt.tsx:67

Content rendered on the left side of the footer


footerRightContent?

optional footerRightContent?: ReactNode

Defined in: chat/prompt/InputPrompt.tsx:69

Content rendered on the right side of the footer, next to send/stop


headerContent?

optional headerContent?: ReactNode

Defined in: chat/prompt/InputPrompt.tsx:65

Content rendered in the header slot


isLoading?

optional isLoading?: boolean

Defined in: chat/prompt/InputPrompt.tsx:41

Whether the agent is loading / streaming


onChange?

optional onChange?: (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?

optional onStop?: () => void

Defined in: chat/prompt/InputPrompt.tsx:45

Callback when the stop button is clicked

Returns

void


padding?

optional padding?: number

Defined in: chat/prompt/InputPrompt.tsx:55

Custom outer padding (default: 3)


placeholder?

optional placeholder?: string

Defined in: chat/prompt/InputPrompt.tsx:39

Placeholder text


showBackground?

optional showBackground?: boolean

Defined in: chat/prompt/InputPrompt.tsx:53

Whether to use a subtle background


showBorderTop?

optional showBorderTop?: boolean

Defined in: chat/prompt/InputPrompt.tsx:51

Whether to show a border on top of the outer wrapper


sx?

optional sx?: Record<string, unknown>

Defined in: chat/prompt/InputPrompt.tsx:59

Additional sx props for the outer container


value?

optional value?: string

Defined in: chat/prompt/InputPrompt.tsx:61

Controlled input value (external state)


variant?

optional variant?: InputPromptVariant

Defined in: chat/prompt/InputPrompt.tsx:37

Input variant — "text" (default) or "lexical"