---
title: "iOS Notification"
description: "An iOS 26 notification for a phone mockup: app icon, title, time, and a body cut after three lines, in the lock screen stack or as a banner that drops in."
url: https://gelatinui.com/components/ios-notification
markdown_url: https://gelatinui.com/components/ios-notification.md
access: free
install: "npx shadcn@latest add @gelatin-ui/ios-notification"
registry_item: https://gelatinui.com/r/ios-notification.json
version: "2026-11-11"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# iOS Notification

> An iOS 26 notification for a phone mockup: app icon, title, time, and a body cut after three lines, in the lock screen stack or as a banner that drops in.

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

## When to use it

Best for: The notification an app sends, drawn at the real iOS size on an iPhone mockup screen.

- Put it in an `IosLockScreenStack` on a lock screen, newest first.
- Use `variant="banner"` on an unlocked app screen: it sits under the island and slides in from the top when it mounts.
- Give the icon the app color with a class and one glyph or a picture of the whole icon.

## When not to use it

- For a message that your own web app shows, use the [Toast](https://gelatinui.com/components/toast.md).

## Notes for agents

- It keeps the native width, the screen less 18 pt each side: size the phone around it, never the notification.
- The body shows three lines at most, then an ellipsis; the title is one line.
- `appearance` is `system` by default: the light glass, and the dark glass under a dark page. `"light"` or `"dark"` pins one iOS look. A banner on a light app gets a solid edge and a shadow.
- Never use the icon of a real app you do not own: use your brand mark or a plain glyph on a color tile.

## Anatomy

```text
IosNotification
├─ IosNotificationIcon (0..n)
├─ IosNotificationTitle (0..n)
├─ IosNotificationTime (0..n)
└─ IosNotificationBody (0..n)
```

## API reference

### IosNotification

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `appearance` | `"dark" \| "light" \| "system"` |  |  |
| `variant` | `"banner" \| "stack"` |  |  |

### IosNotificationIcon

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

### IosNotificationTitle

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

### IosNotificationTime

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

### IosNotificationBody

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

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| IosNotification | `ios-notification` |  |  | `motion-timing` |
| IosNotificationIcon | `ios-notification-icon` |  |  |  |
| IosNotificationTitle | `ios-notification-title` |  |  |  |
| IosNotificationTime | `ios-notification-time` |  |  |  |
| IosNotificationBody | `ios-notification-body` |  |  |  |

## Usage

Put the parts in the order iOS shows them.

```tsx title="payment-notification.tsx"
import { MoneyIcon } from "@phosphor-icons/react/ssr";

import {
  IosNotification,
  IosNotificationBody,
  IosNotificationIcon,
  IosNotificationTime,
  IosNotificationTitle,
} from "@/components/mockups/ios-notification";

export function PaymentNotification() {
  return (
    <IosNotification>
      <IosNotificationIcon className="bg-emerald-600">
        <MoneyIcon />
      </IosNotificationIcon>
      <IosNotificationTitle>Payment received</IosNotificationTitle>
      <IosNotificationTime>now</IosNotificationTime>
      <IosNotificationBody>€249.00 from Oak & Ivy for invoice 2041.</IosNotificationBody>
    </IosNotification>
  );
}
```

## 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-notification
```

It adds 5 registry items: 4 files, 1062 lines, and the npm packages `clsx`, `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)
- [Toast](https://gelatinui.com/components/toast.md)

## Accessibility

The title, the time, and the body are real text in reading order. The icon is a picture, hidden from screen readers.

## Motion

| Part | Motion |
| --- | --- |
| Banner in | toast · 300ms · ease-panel (0.2, 0.4, 0.2, 1) · slides down 110 pt from above the screen when it mounts |
