Skip to content
caliper ui pro docs

Read receipts

Where a sent message has got to: a clock while sending, one tick once sent, two once delivered, and the faces of the people who have read it. A message that failed says so in words and offers Retry.

Pro

Pushed the new onboarding flow, can you all take a look before 3?

Read by Maya Chen and 2 others, 14:12

When to use

  • Direct messages and small group chats where knowing it was seen changes what you do next.
  • Outbound messages to customers, where delivery can fail.

When not to use

  • Large channels, where "read by 140" is noise; show a count or nothing.
  • Places where being seen should stay private; let people turn receipts off.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/read-receipts

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

ReadReceipts

5 props

Also accepts the native props of its root element and a ref.

PropTypeDefaultDescription
status *ReceiptStatus—
readersreadonly ReceiptReader[][]Who has read it, first reader first. Shown as faces once the status is `read`.
timestring—When it was sent, already formatted ("09:41").
maxnumber3How many faces before "+n".
onRetry(() => void)—Shown as a Retry button when the status is `failed`.

Keyboard

  • No custom key handling; Tab and the native activation keys do the work.

Accessibility

It is built on native elements and keeps aria-live and aria-hidden 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/read-receipts.md

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

More in Threads