Skip to main content

Interface: ChatInputProps

Defined in: react/src/components/chat-input.tsx:4

Properties

className?

optional className?: string

Defined in: react/src/components/chat-input.tsx:8


disabled?

optional disabled?: boolean

Defined in: react/src/components/chat-input.tsx:6


isStreaming?

optional isStreaming?: boolean

Defined in: react/src/components/chat-input.tsx:14

Whether the assistant is currently streaming a response


onSend

onSend: (message) => void

Defined in: react/src/components/chat-input.tsx:5

Parameters

message

string

Returns

void


onStop?

optional onStop?: () => void

Defined in: react/src/components/chat-input.tsx:12

Callback to stop streaming. When provided with isStreaming, shows a stop button.

Returns

void


onValueChange?

optional onValueChange?: (value) => void

Defined in: react/src/components/chat-input.tsx:10

Parameters

value

string

Returns

void


placeholder?

optional placeholder?: string

Defined in: react/src/components/chat-input.tsx:7


value?

optional value?: string

Defined in: react/src/components/chat-input.tsx:9