Support conversation
A support chat with agent, customer and system messages.
When to use
- Showing a ticket thread.
When not to use
- A bot-only chat; use the chat shell.
Installation
terminal
pnpm dlx shadcn@latest add @caliper/support-conversation
Adds its 6 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
API reference
SupportConversation
13 props
PropTypeDefaultDescription
subject *string—
customer *{ name: string; email: string; plan?: string | undefined; }—
messages *readonly TicketMessage[]—
status *TicketStatus—
onStatusChange *(s: TicketStatus) => void—
assigneestring—
assigneesreadonly string[]—
onAssign((name: string) => void)—
macrosreadonly Macro[][]
slaLeftstring—Text such as "1h 20m to respond".
customerTypingboolean—
onSend *(text: string, kind: "note" | "reply", resolve: boolean) => void—
classNamestring—
Keyboard
- Enter
- Activates the focused control.
Accessibility
It exposes log, status and group semantics, with aria-label, aria-hidden, aria-live and aria-pressed kept in step with state. Changes that matter are announced through a live region.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/support-conversation.mdThe index of every part is at /llms.txt.