Read receipts Pro
One payment, every Pro piece. $10 tomorrow.
Install
npx shadcn@latest add @mu-pro/read-receiptsPro. Installs with your licence key through the @mu-pro registry; the key comes with Pro. Lands in components/mu/read-receipts/ with the shared foundation.
Usage
import { ReadReceipts } from "@/components/mu/read-receipts/ReadReceipts";
<ReadReceipts state="delivered" readers={seenBy} max={3}>
Demo moved to 4 pm. Same room.
</ReadReceipts>Use with an agent Beta
npx shadcn@latest add @mu-pro/uisdk/read-receiptsOptional. An AI agent in your app can read and set this piece by name, and you can ask before anything it can’t undo. The piece itself doesn’t change; installs with your Pro key, like the piece. Built on UI SDK 0.1.0-beta.23, which is in beta too, so this add-on follows its releases.
Source
How it works
Building with an agent? Hand it a ready prompt for this piece.
Input and reduced motion
- Pointer: rest on the stack and, after a short wait, it spreads and names the first faces; it closes a moment after you leave. A click toggles it.
- Touch: a tap toggles it at once.
- Keyboard: Tab to the stack and it spreads at once ("Seen by Jelly, Capy, Kitsu +2" is its name); Enter toggles it, Escape closes it.
- Reduced motion: no budding and no travel: ticks and faces appear in place, the stack spreads at once, words land without the blur.
- Words: each state says itself: "Sending", "Sent" with a tick, "Delivered" with two, "Seen by 5" with the faces, "Not delivered" with a cross.
Props
| Prop | Default | What it does |
|---|---|---|
children | — | any content | your message |
state | "sent" | sending, sent, delivered, seen, failed | where the message is; any readers mean seen |
readers | [] | { id, name, photo? }[] | who has read it, first reader first; a reader with no photo shows an initial |
max | 3 | 1 and up | faces shown before the rest become "+n" |
open / defaultOpen / onOpenChange | closed | boolean | whether the stack is spread with names |
onRetry | — | () => unknown | shows "Try again" on a failed message; may return a promise (pending while it runs) |
labels | English | see ReadReceiptsLabels | every word, with {n} and {names} templates |
className | — | — | added to the root |
Sound
None. It loads in silence.
None: the receipts arrive from your server, not from a press, and an item never plays because a prop changed.
Licence
Included with Pro: use it in unlimited end products for you and your clients; no reselling as a kit. See the licence.
Your message buds a tick as it is sent and delivered, then the faces of the people who read it bud off into a small stack.
For sent, delivered and read in chatMore in Messaging