caliper uidocs

Support conversation

Pro

A support chat with agent, customer and system messages.

Installs components/ui/support-conversation.tsxDepends on @radix-ui/react-popover, @radix-ui/react-slot, lucide-reactMotion none in component source
pnpm dlx shadcn@latest add @caliper/support-conversation

Charged twice for October

Sam Okafor · sam@brightlabs.io · Team plan

1h 20m to respondOpen

Ticket opened from the help widget · 9:02

Sam Okafor

Hi, I was charged twice for October. Can you check? My invoice number is INV-2025-0042.

Kofi MensahPrivate note

Checked billing: two charges 4 minutes apart, the second is a retry after a timeout. Safe to refund.

Kofi Mensah

Thanks for the invoice number. I can see the duplicate charge and I am refunding it now.

Ctrl Enter sends

When to use #

Use it for

  • Showing a ticket thread.

Skip it when

  • 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.

Usage #

Import it from your copy of the source. The example behind the preview comes with the source.

example.tsx
import { SupportConversation } from "@/components/ui/support-conversation"

The worked example comes with Pro

The 50-line example behind the preview opens here with a Pro or Team licence.

Checking your licence…

API reference #

SupportConversation

component
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—

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.

KeyBehaviour
EnterActivates the focused control.

Motion #

It declares no animation in its component source. Any transition comes from its stylesheet, which uses the duration tokens that collapse to instant under prefers-reduced-motion.