# Read Receipts

> A message bubble whose clock turns into one tick, then two, then fills with colour once the message is read.

## Spec sheet

| | |
| --- | --- |
| Access | Free: no account, free for commercial use |
| Shelf | Components › State Changes |
| Live preview | https://uibrik.com/components/read-receipts |
| Writes | 1 file into `components/uibrik/read-receipts/` |
| Packages | `motion` (the CLI installs them) |
| Needs | React 19, Tailwind CSS v4, a project set up with `npx shadcn@latest init` |
| Theme | Reads the shadcn tokens and follows class-based dark mode ([theming](https://uibrik.com/docs/theming.md)) |
| Updated | Nov 22, 2026 |

## Add it

```bash
npx shadcn@latest add https://uibrik.com/r/read-receipts.json
```

With the `@uibrik` namespace in `components.json` ([setup](https://uibrik.com/docs/installation.md)): `npx shadcn@latest add @uibrik/read-receipts`.

Can't run commands? https://uibrik.com/components/read-receipts/prompt.txt has every file verbatim, with the setup steps, ready for an assistant to write.

## Render it

Renders as is; every value shown is the default, so delete any line you don't need.

```tsx
import { ReadReceipts } from "@/components/uibrik/read-receipts/read-receipts";

<ReadReceipts
  message="On my way, see you at the station."
  time="9:41"
  simulate
  stepDelay={0.9}
  readColor="#2f7cf6"
  showLabel
  radius={20}
  defaultStatus="sending"
  // status="sending"
  // onStatusChange="sending"
/>
```

## Tune it

The same props as the Customize panel on https://uibrik.com/components/read-receipts.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `message` | `string` | `"On my way, see you at the station."` | The message in the bubble. |
| `time` | `string` | `"9:41"` | Time shown beside the ticks. |
| `simulate` | `boolean` | `true` | Step through sending, sent, delivered and read on its own. Click the bubble to play it again. |
| `stepDelay` | `number` | `0.9` | Seconds between steps while simulating. |
| `readColor` | `string` | `"#2f7cf6"` | Colour of the ticks once read. |
| `showLabel` | `boolean` | `true` | Show the status word under the bubble. |
| `radius` | `number` | `20` | Corner radius of the bubble. |

## Wire it

The props the Customize panel doesn't show: ranges, data, content and callbacks.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `status / onStatusChange` | `"sending" \| "sent" \| "delivered" \| "read"` |  | Controlled status. Simulation turns off while controlled. |
| `defaultStatus` | `ReceiptStatus` | `"sending"` | Status on mount when uncontrolled. |
| `className` | `string` |  | Classes for the wrapper. |

## Where it fits

- **Chat and support inboxes**: Each step draws itself in, so people can tell a message has landed without reading a label. Pairs with [Typing Dots](https://uibrik.com/components/typing-dots.md) and [Streaming Chat](https://uibrik.com/components/streaming-chat.md) (Pro).
- **Sent email and invites**: The same four states show whether an invite was delivered and opened. Pairs with [Email Composer](https://uibrik.com/components/email-composer.md).
- **Order and request updates**: A quiet status beside the time tells a customer their request reached the team.

## Same shelf: State Changes

- [Sync Button](https://uibrik.com/components/sync-button.md): A sync button whose arrows spin while it works, coast to a stop instead of halting, draw a check, and keep "Synced 3 min ago" up to date.
- [Typing Dots](https://uibrik.com/components/typing-dots.md): A typing indicator whose bubble grows from three dots into the message itself, so the reply lands where the dots were.
- [Disabled Reason](https://uibrik.com/components/disabled-reason.md): A disabled button that answers a press: it shakes, says why it's blocked, and moves focus to the field that needs fixing.
- [Download Button](https://uibrik.com/components/download-button.md): A download button whose arrow drops into its tray, fills with progress as the percentage counts up, then draws a check and offers Open.
- [Follow Button](https://uibrik.com/components/follow-button.md): A follow button whose plus folds into a check as it turns to Following, and warns with Unfollow on hover before you undo it.
- [Live Kbd](https://uibrik.com/components/live-kbd.md): Shortcut keycaps that sink as you press the real keys, then fire the action, so people learn the shortcut by using it.

## Ground rules

- Only the props above exist. To change anything else, edit the installed file.
- Keep the files in `components/uibrik/read-receipts/` so the import paths keep resolving.
- The playbook for working with the whole library: https://uibrik.com/llms.txt
