---
title: "iOS Lock Screen"
description: "The iOS 26 lock screen for an iPhone mockup: the date, the large clock, a notification stack, and the flashlight and camera buttons over a wallpaper."
url: https://gelatinui.com/components/ios-lock-screen
markdown_url: https://gelatinui.com/components/ios-lock-screen.md
access: free
install: "npx shadcn@latest add @gelatin-ui/ios-lock-screen"
registry_item: https://gelatinui.com/r/ios-lock-screen.json
version: "2026-11-11"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# iOS Lock Screen

> The iOS 26 lock screen for an iPhone mockup: the date, the large clock, a notification stack, and the flashlight and camera buttons over a wallpaper.

Page: https://gelatinui.com/components/ios-lock-screen

## When to use it

Best for: An iPhone mockup that must show the locked phone: the time, and the notifications an app sends.

- Put it in `IphoneScreen`, and the status bar, the island, and the home indicator after the screen, with light glyphs.
- Use `placement="top"` on the stack for a phone that the page crops at its foot, or a phone beside a window.
- Leave out `IosLockScreenControls` for a small phone beside a window, so the notifications are the subject.

## When not to use it

- For the screen of an unlocked app, put the app in the screen and drop a banner on it with the [iOS Notification](https://gelatinui.com/components/ios-notification.md).

## Notes for agents

- The root fills its screen (absolute) and draws the default dusk wallpaper; `IosLockScreenWallpaper` with an `Image` replaces it.
- Every size is in pt of the real screen (66 pt to the date, a 112 pt clock, the stack 118 pt over the foot): keep the phone at its real size and scale the frame, never the parts.
- Notifications in the stack keep their native width (the screen less 18 pt each side). Put the newest first.

## Anatomy

```text
IosLockScreen
├─ IosLockScreenWallpaper (0..n)
├─ IosLockScreenDate (0..n)
├─ IosLockScreenClock (0..n)
├─ IosLockScreenStack (0..n)
├─ IosLockScreenControls (0..n)
└─ IosLockScreenControl (0..n)
```

## API reference

### IosLockScreen

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

### IosLockScreenWallpaper

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

### IosLockScreenDate

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

### IosLockScreenClock

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

### IosLockScreenStack

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `placement` | `"bottom" \| "top"` |  |  |

### IosLockScreenControls

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

### IosLockScreenControl

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

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| IosLockScreen | `ios-lock-screen` |  |  |  |
| IosLockScreenWallpaper | `ios-lock-screen-wallpaper` |  |  |  |
| IosLockScreenDate | `ios-lock-screen-date` |  |  |  |
| IosLockScreenClock | `ios-lock-screen-clock` |  |  |  |
| IosLockScreenStack | `ios-lock-screen-stack` |  |  |  |
| IosLockScreenControls | `ios-lock-screen-controls` |  |  |  |
| IosLockScreenControl | `ios-lock-screen-control` |  |  |  |

## Usage

Put it in the iPhone screen, with the notifications in its stack.

The sample also uses `ios-status-bar`, `iphone`, which this add does not write. One command adds them with this item:

```bash
npx shadcn@latest add @gelatin-ui/ios-lock-screen @gelatin-ui/ios-status-bar @gelatin-ui/iphone
```

```tsx title="lock-screen.tsx"
import { IosHomeIndicator, IosStatusBar } from "@/components/mockups/ios-status-bar";
import {
  IosLockScreen,
  IosLockScreenClock,
  IosLockScreenControls,
  IosLockScreenDate,
  IosLockScreenStack,
} from "@/components/mockups/ios-lock-screen";
import { Iphone, IphoneIsland, IphoneScreen } from "@/components/mockups/iphone";

export function LockScreen() {
  return (
    <Iphone className="w-72">
      <IphoneScreen>
        <IosLockScreen>
          <IosLockScreenDate>Tuesday, November 10</IosLockScreenDate>
          <IosLockScreenClock>9:41</IosLockScreenClock>
          <IosLockScreenStack>{/* IosNotification parts */}</IosLockScreenStack>
          <IosLockScreenControls />
        </IosLockScreen>
      </IphoneScreen>
      <IosStatusBar glyphs="light" />
      <IphoneIsland />
      <IosHomeIndicator glyphs="light" />
    </Iphone>
  );
}
```

## 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-lock-screen
```

It adds 4 registry items: 4 files, 361 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)
- [Dynamic Island](https://gelatinui.com/components/dynamic-island.md)

## Accessibility

The date, the clock, and the notifications are real text. The wallpaper and the flashlight and camera buttons are pictures, hidden from screen readers.
