Skip to content
caliper ui pro docs

Messaging app

A complete messaging block: conversations with unread counts and search beside the open conversation, grouped bubbles with day separators, read receipts on your latest message, reactions, typing, and a composer that previews attachments before they go. On a phone the list and the conversation stack, with Back.

Pro

Messages3 unread

Kofi Mensah

Online

Saturday 28 November

Kofi Mensah, 08:41: Morning! Did the venue send the floor plan?
You, 08:52: They did, attaching it now.
You, 08:52: floor-plan-v3.pdf471 KB
Read by Kofi Mensah, 08:52
Kofi Mensah, 09:10: Terrace viewPerfect. The terrace would work for the dinner.

Monday 30 November

Kofi Mensah, 09:02: Can you confirm numbers by Friday?
Kofi Mensah, 09:03: The kitchen needs dietary notes too.

When to use

  • Direct and small-group messages inside a product: support, marketplaces, team tools.
  • Any inbox where people reply to each other rather than to an assistant.

When not to use

  • A conversation with an assistant; use `chat-thread` or the assistant parts.
  • Comment threads on a document; use the comment parts.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/messaging-app

Adds its 11 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

MessagingApp

12 props
PropTypeDefaultDescription
conversations *readonly MessagingConversation[]—
people *Readonly<Record<string, MessagingPerson>>—
currentUserId *string—
activeId *string | null—The open conversation, or null for none.
onActiveChange *(id: string | null) => void—
onSend *(conversationId: string, text: string, files: File[]) => void—
onReact((conversationId: string, messageId: string, reactions: Reaction[]) => void)—
onRetry((conversationId: string, messageId: string) => void)—
loadingbooleanfalse
timeZonestring"UTC"
titlestring"Messages"
classNamestring—

fileSize

0 props

No props of its own; it accepts the native props of its root element.

Keyboard

Enter
Activates the focused control.

Accessibility

It exposes status and log semantics, with aria-label, aria-hidden and aria-current 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/messaging-app.md

The index of every part is at /llms.txt.

More in Work tracking