Skip to content
← Inventory

AgentChat

Tabbed agent chat panel with composer.

Compare mint chip to last summer

Usage

import { AgentChat, AgentChatDemo, AgentChatProps, AgentChatSection } from "@desk/ui/components/agent-chat";

Best practices

  • Keep the conversation region height-stable so the shell doesn't jump while sections stream in.

Props

PropTypeDefaultDescription
classNamestring
tabsstring[]

Header tab labels.

activeTabstring

Active tab.

onTabChange(tab: string) => void
userMessagestring

Latest user message (hidden until present).

showUserMessageboolean

Whether the user message should be visible.

sectionsAgentChatSection[]

Assistant sections currently visible.

draftstring

Composer draft value.

onDraftChange(value: string) => void
onSend() => void
placeholderstring

Composer placeholder.

headerActionsReactNode

Optional header action icons.

Also exports

  • componentAgentChatDemo
  • interfaceAgentChatProps
  • interfaceAgentChatSection

Composition

Builds on

Text