ChatStandaloneProps
Agent Runtimes / chat/ChatStandalone / ChatStandaloneProps
Interface: ChatStandaloneProps
Defined in: chat/ChatStandalone.tsx:42
ChatStandalone props
Properties
animationDuration?
optionalanimationDuration?:number
Defined in: chat/ChatStandalone.tsx:141
Animation duration (in ms)
brandColor?
optionalbrandColor?:string
Defined in: chat/ChatStandalone.tsx:135
Brand color
brandIcon?
optionalbrandIcon?:ReactNode
Defined in: chat/ChatStandalone.tsx:126
Custom brand icon
buttonIcon?
optionalbuttonIcon?:ReactNode
Defined in: chat/ChatStandalone.tsx:129
Custom button icon when closed
buttonTooltip?
optionalbuttonTooltip?:string
Defined in: chat/ChatStandalone.tsx:132
Button tooltip text
children?
optionalchildren?:ReactNode
Defined in: chat/ChatStandalone.tsx:123
Children to render in popup body (custom content)
className?
optionalclassName?:string
Defined in: chat/ChatStandalone.tsx:105
Custom class name
clickOutsideToClose?
optionalclickOutsideToClose?:boolean
Defined in: chat/ChatStandalone.tsx:99
Enable click outside to close
defaultOpen?
optionaldefaultOpen?:boolean
Defined in: chat/ChatStandalone.tsx:63
Default open state
description?
optionaldescription?:string
Defined in: chat/ChatStandalone.tsx:57
Description shown in empty state
emptyStateMessage?
optionalemptyStateMessage?:string
Defined in: chat/ChatStandalone.tsx:147
Empty state message
enableKeyboardShortcuts?
optionalenableKeyboardShortcuts?:boolean
Defined in: chat/ChatStandalone.tsx:87
Enable keyboard shortcuts
enableStreaming?
optionalenableStreaming?:boolean
Defined in: chat/ChatStandalone.tsx:144
Enable streaming mode
escapeToClose?
optionalescapeToClose?:boolean
Defined in: chat/ChatStandalone.tsx:102
Enable escape key to close
height?
optionalheight?:string|number
Defined in: chat/ChatStandalone.tsx:69
height
offset?
optionaloffset?:number
Defined in: chat/ChatStandalone.tsx:138
Offset from edge (in pixels)
onClose?
optionalonClose?: () =>void
Defined in: chat/ChatStandalone.tsx:120
Callback when popup closes
Returns
void
onNewChat?
optionalonNewChat?: () =>void
Defined in: chat/ChatStandalone.tsx:114
Callback when new chat clicked
Returns
void
onOpen?
optionalonOpen?: () =>void
Defined in: chat/ChatStandalone.tsx:117
Callback when popup opens
Returns
void
onSendMessage
onSendMessage:
MessageHandler
Defined in: chat/ChatStandalone.tsx:51
Handler for sending messages - REQUIRED.
This function will be called when the user sends a message.
Signature: (message, messages, options?) => Promise<string | void>
- message: The user's message text
- messages: All messages in the conversation (including the new user message)
- options: Streaming callbacks (onChunk, onComplete, onError, signal)
onSettingsClick?
optionalonSettingsClick?: () =>void
Defined in: chat/ChatStandalone.tsx:111
Callback when settings clicked
Returns
void
panelProps?
optionalpanelProps?:Partial<ChatBaseProps>
Defined in: chat/ChatStandalone.tsx:162
Additional ChatBase props
pendingPrompt?
optionalpendingPrompt?:string
Defined in: chat/ChatStandalone.tsx:159
A prompt to append and send after the conversation history is loaded. The message is shown in the chat and sent to the agent exactly once.
placeholder?
optionalplaceholder?:string
Defined in: chat/ChatStandalone.tsx:108
Input placeholder
position?
optionalposition?:"bottom-right"|"bottom-left"|"top-right"|"top-left"
Defined in: chat/ChatStandalone.tsx:60
Position of the popup
poweredByProps?
optionalpoweredByProps?:Partial<PoweredByTagProps>
Defined in: chat/ChatStandalone.tsx:96
Powered by tag props
renderToolResult?
optionalrenderToolResult?:RenderToolResult
Defined in: chat/ChatStandalone.tsx:153
Custom render function for tool results. When provided, tool calls will be rendered inline in the chat.
showButton?
optionalshowButton?:boolean
Defined in: chat/ChatStandalone.tsx:75
Show the floating button when closed
showClearButton?
optionalshowClearButton?:boolean
Defined in: chat/ChatStandalone.tsx:81
Show clear button
showHeader?
optionalshowHeader?:boolean
Defined in: chat/ChatStandalone.tsx:72
Show header
showNewChatButton?
optionalshowNewChatButton?:boolean
Defined in: chat/ChatStandalone.tsx:78
Show new chat button
showPoweredBy?
optionalshowPoweredBy?:boolean
Defined in: chat/ChatStandalone.tsx:93
Show powered by tag
showSettingsButton?
optionalshowSettingsButton?:boolean
Defined in: chat/ChatStandalone.tsx:84
Show settings button
title?
optionaltitle?:string
Defined in: chat/ChatStandalone.tsx:54
title
toggleShortcut?
optionaltoggleShortcut?:string
Defined in: chat/ChatStandalone.tsx:90
Toggle shortcut key
width?
optionalwidth?:string|number
Defined in: chat/ChatStandalone.tsx:66
width