---
title: "iOS Messages"
description: "An iOS 26 Messages thread for a phone mockup: bubbles with tails, time stamps, a read receipt, and typing dots that grow into the reply."
url: https://gelatinui.com/components/ios-messages
markdown_url: https://gelatinui.com/components/ios-messages.md
access: free
install: "npx shadcn@latest add @gelatin-ui/ios-messages"
registry_item: https://gelatinui.com/r/ios-messages.json
version: "2026-11-11"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# iOS Messages

> An iOS 26 Messages thread for a phone mockup: bubbles with tails, time stamps, a read receipt, and typing dots that grow into the reply.

Page: https://gelatinui.com/components/ios-messages

## When to use it

Best for: A real Messages conversation on an iPhone mockup, still or staged in a scene.

- Put the thread under a header in a phone screen: it is pinned to its foot and clips only its top.
- Use `service="sms"` for green bubbles, as iOS draws a text message.
- Swap `IosMessagesTyping` for the reply text in the same bubble: the dots grow into the message.
- Set `shown={false}` on the receipt when their reply comes: it folds away, as on iOS.

## When not to use it

- For the status bar of the phone, use the [iOS Status Bar](https://gelatinui.com/components/ios-status-bar.md).

## Notes for agents

- Parts: `IosMessagesBubble from="me" | "them"`, `IosMessagesTyping` (inside a bubble), `IosMessagesStamp` (a `<b>` is the day), and `IosMessagesReceipt` (a string child).
- Tails go on the last bubble of each run with no prop. `tail` forces one on or off.
- Parts there at the first render hold still. A part added later rises in, and the parts above glide up with `transform`.
- Change the receipt text from "Delivered" to "Read 9:41": the word swaps in place.
- The thread uses the iOS system colors with `dark:` values; the screen around it sets the page color.

## Anatomy

```text
IosMessages
├─ IosMessagesBubble (0..n)
├─ IosMessagesTyping (0..n)
├─ IosMessagesStamp (0..n)
└─ IosMessagesReceipt (0..n)
```

## API reference

### IosMessages

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `service` | `"imessage" \| "sms"` |  |  |

### IosMessagesBubble

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `from` | `"me" \| "them"` |  | `me` sits on the right in the blue (or green) bubble; `them` on the left in gray. |
| `tail` | `boolean` |  | Forces the tail on or off. Default: on the last bubble of a run. |

### IosMessagesTyping

No props of its own: `className`, `children`, and every other prop go to the element it renders.

### IosMessagesStamp

No props of its own: `className`, `children`, and every other prop go to the element it renders.

### IosMessagesReceipt

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `children` | `string` |  | The status word under your last message, for example "Delivered" or "Read 9:41". |
| `shown` | `boolean` | true | False folds the receipt away (when their reply makes it redundant). Default true. |

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| IosMessages | `ios-messages` |  | `--ios-messages-me`, `--ios-messages-them`, `--ios-messages-them-ink` |  |
| IosMessagesBubble | `ios-messages-bubble` | `data-from`, `data-tail` | `--ios-messages-fill`, `--ios-messages-ink`, `--ios-messages-me`, `--ios-messages-tail`, `--ios-messages-them`, `--ios-messages-them-ink` | `motion-timing` |
| IosMessagesTyping | `ios-messages-typing` |  |  |  |
| IosMessagesStamp | `ios-messages-stamp` |  |  |  |
| IosMessagesReceipt | `ios-messages-receipt` | `data-shown` |  | `motion-timing` |

## Usage

Put the thread in a phone screen, under a header and over the composer.

```tsx title="chat-screen.tsx"
import {
  IosMessages,
  IosMessagesBubble,
  IosMessagesReceipt,
  IosMessagesStamp,
} from "@/components/mockups/ios-messages";

export function ChatScreen() {
  return (
    <IosMessages className="flex-1 px-4">
      <IosMessagesStamp>
        <b>Today</b> 9:38
      </IosMessagesStamp>
      <IosMessagesBubble from="them">Still on for tonight?</IosMessagesBubble>
      <IosMessagesBubble from="me">Yes! See you at 7</IosMessagesBubble>
      <IosMessagesReceipt>Read 9:41</IosMessagesReceipt>
    </IosMessages>
  );
}
```

## Compose

Rules:

- Compose the parts (`compose-parts`): Build each item from its named parts as children, and pass your text and icons in as parts.
- Every state is designed (`every-state`): Give each view of data its loading, empty, and error states: a skeleton in the final layout, an `Empty` with an illustration and one next action, and an error that says what failed and how to retry.

## Add it

```bash
npx shadcn@latest add @gelatin-ui/ios-messages
```

It adds 13 registry items: 12 files, 3009 lines, and the npm packages `@base-ui/react`, `@mantine/hooks`, `clsx`, `motion`, `tailwind-merge`, `tailwind-variants`.

## For AI agents

- Every item, one file: https://gelatinui.com/llms.txt
- MCP server (`search_items`, `get_item`, `get_install_plan`): https://gelatinui.com/mcp

## Related

- [iPhone](https://gelatinui.com/components/iphone.md)
- [iOS Status Bar](https://gelatinui.com/components/ios-status-bar.md)
- [Device Frame](https://gelatinui.com/components/device-frame.md)

## Accessibility

The words of each bubble are plain text in reading order.

The tails, the fill layer, and the typing dots are pictures, hidden from screen readers.

## Motion

| Part | Motion |
| --- | --- |
| Arrive | reveal · 400ms · ease-panel (0.2, 0.4, 0.2, 1) · a new bubble rises 6px and fades in, its fill grows from 80% at the tail corner |
| Glide | reveal · 400ms · ease-panel · the parts above a new part move up by its height with transform, from where they are |
| Grow | sheet · 300ms · ease-panel · a bubble eases from the typing dots to the reply size, and the words fade in |
| Tail | sheet · 300ms · ease-panel · a tail retracts into the corner when the run goes on, and grows back when it ends |
| Receipt | fade · 150ms · the old word lifts out as the new one rises in; the line folds open and shut on the panel clock (260ms) |
| Typing | sine · 1.2s a loop · each dot lifts and brightens 160ms after the one before |
