ChatSidebarProps
Agent Runtimes / chat/ChatSidebar / ChatSidebarProps
Interface: ChatSidebarProps
Defined in: chat/ChatSidebar.tsx:45
ChatSidebar props
Properties
brandIcon?
optionalbrandIcon?:ReactNode
Defined in: chat/ChatSidebar.tsx:118
Custom brand icon
children?
optionalchildren?:ReactNode
Defined in: chat/ChatSidebar.tsx:115
Children to render in sidebar body (custom content)
className?
optionalclassName?:string
Defined in: chat/ChatSidebar.tsx:100
Custom class name
clickOutsideToClose?
optionalclickOutsideToClose?:boolean
Defined in: chat/ChatSidebar.tsx:94
Enable click outside to close
defaultOpen?
optionaldefaultOpen?:boolean
Defined in: chat/ChatSidebar.tsx:61
Initial open state
description?
optionaldescription?:string
Defined in: chat/ChatSidebar.tsx:134
Description shown in empty state
enableKeyboardShortcuts?
optionalenableKeyboardShortcuts?:boolean
Defined in: chat/ChatSidebar.tsx:82
Enable keyboard shortcuts
enableStreaming?
optionalenableStreaming?:boolean
Defined in: chat/ChatSidebar.tsx:128
Enable streaming mode (default: true)
escapeToClose?
optionalescapeToClose?:boolean
Defined in: chat/ChatSidebar.tsx:97
Enable escape key to close
onClose?
optionalonClose?: () =>void
Defined in: chat/ChatSidebar.tsx:112
Callback when sidebar closes
Returns
void
onNewChat?
optionalonNewChat?: () =>void
Defined in: chat/ChatSidebar.tsx:106
Callback when new chat clicked
Returns
void
onOpen?
optionalonOpen?: () =>void
Defined in: chat/ChatSidebar.tsx:109
Callback when sidebar opens
Returns
void
onSendMessage?
optionalonSendMessage?:MessageHandler
Defined in: chat/ChatSidebar.tsx:125
Handler for sending messages.
When provided, this is used instead of protocol mode.
Signature: (message, messages, options?) => Promise<string | void>
onSettingsClick?
optionalonSettingsClick?: () =>void
Defined in: chat/ChatSidebar.tsx:103
Callback when settings clicked
Returns
void
panelProps?
optionalpanelProps?:Partial<ChatBaseProps>
Defined in: chat/ChatSidebar.tsx:143
Additional ChatBase props
pendingPrompt?
optionalpendingPrompt?:string
Defined in: chat/ChatSidebar.tsx:140
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/ChatSidebar.tsx:131
Input placeholder
position?
optionalposition?:"left"|"right"
Defined in: chat/ChatSidebar.tsx:64
Sidebar position
poweredByProps?
optionalpoweredByProps?:Partial<PoweredByTagProps>
Defined in: chat/ChatSidebar.tsx:91
Powered by tag props
protocol?
optionalprotocol?:Protocol|ProtocolConfig
Defined in: chat/ChatSidebar.tsx:58
Protocol type or full configuration.
When a Protocol string is provided (e.g. 'vercel-ai'), it is forwarded
to ChatBase. When a full ProtocolConfig object is provided, it is passed
directly via panelProps.
Default
'vercel-ai'
showClearButton?
optionalshowClearButton?:boolean
Defined in: chat/ChatSidebar.tsx:76
Show clear button
showHeader?
optionalshowHeader?:boolean
Defined in: chat/ChatSidebar.tsx:70
Show header
showNewChatButton?
optionalshowNewChatButton?:boolean
Defined in: chat/ChatSidebar.tsx:73
Show new chat button
showPoweredBy?
optionalshowPoweredBy?:boolean
Defined in: chat/ChatSidebar.tsx:88
Show powered by tag
showSettingsButton?
optionalshowSettingsButton?:boolean
Defined in: chat/ChatSidebar.tsx:79
Show settings button
title?
optionaltitle?:string
Defined in: chat/ChatSidebar.tsx:47
Sidebar title
toggleShortcut?
optionaltoggleShortcut?:string
Defined in: chat/ChatSidebar.tsx:85
Keyboard shortcut to toggle (default: 'k')
width?
optionalwidth?:string|number
Defined in: chat/ChatSidebar.tsx:67
Sidebar width when open