---
title: "iPhone Duo"
description: "A foldable iPhone Duo frame, closed or open, at its real size. Put your app screen on the outer or the inner screen."
url: https://gelatinui.com/components/iphone-duo
markdown_url: https://gelatinui.com/components/iphone-duo.md
access: free
install: "npx shadcn@latest add @gelatin-ui/iphone-duo"
registry_item: https://gelatinui.com/r/iphone-duo.json
version: "2026-11-10"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# iPhone Duo

> A foldable iPhone Duo frame, closed or open, at its real size. Put your app screen on the outer or the inner screen.

Page: https://gelatinui.com/components/iphone-duo

## When to use it

Best for: A real iOS app on a foldable phone, closed or open, at the real point size.

- Use `state="open"` to show a two-pane layout on the inner screen.
- Use `state="closed"` to show the same app on the cover screen.

## When not to use it

- For a phone that does not fold, use the [iPhone](https://gelatinui.com/components/iphone.md).

## Notes for agents

- Compose `IphoneDuoScreen` first, then `IosStatusBar`, `IphoneDuoIsland`, and `IosHomeIndicator`. With no children, the frame shows its system UI at rest.
- The crease of the open phone is hardware: it always shows over the screen.
- The island, the safe areas, and the crease place are estimated: Apple published no drawings of the inner screen.

## Anatomy

```text
IphoneDuo
├─ IphoneDuoScreen (0..n)
└─ IphoneDuoIsland (0..n)
```

## API reference

### IphoneDuo

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `state` | `"closed" \| "open"` | "open" | `closed` shows the outer screen, `open` the inner screen in landscape. Default `open`. |
| `finish` | `"night-sky" \| "star-white"` | "night-sky" | The band color. Default `night-sky`. |

### IphoneDuoScreen

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

### IphoneDuoIsland

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

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| IphoneDuo | `iphone-duo` |  | `--device-band`, `--device-camera-control`, `--device-edge`, `--device-hinge-light`, `--device-hinge-shade`, `--device-island-width`, `--device-middle`, `--device-rim`, `--device-seam`, `--iphone-duo-camera-fill`, `--iphone-duo-camera-size`, `--iphone-duo-island-left`, `--iphone-duo-island-top`, `--iphone-duo-island-width` |  |
| IphoneDuoScreen | `iphone-duo-screen` |  |  |  |
| IphoneDuoIsland | `iphone-duo-island` |  | `--iphone-duo-camera-fill`, `--iphone-duo-camera-size`, `--iphone-duo-island-left`, `--iphone-duo-island-top`, `--iphone-duo-island-width` |  |

## Usage

Pick closed or open, then put your app in the screen.

```tsx title="fold-screenshot.tsx"
import { IosHomeIndicator, IosStatusBar } from "@/components/mockups/ios-status-bar";
import { IphoneDuo, IphoneDuoIsland, IphoneDuoScreen } from "@/components/mockups/iphone-duo";

export function FoldScreenshot() {
  return (
    <IphoneDuo state="open" className="w-full max-w-xl">
      <IphoneDuoScreen>
        <div className="size-full bg-white pt-(--safe-area-top)">Your app</div>
      </IphoneDuoScreen>
      <IosStatusBar glyphs="dark" />
      <IphoneDuoIsland />
      <IosHomeIndicator />
    </IphoneDuo>
  );
}
```

## 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/iphone-duo
```

It adds 8 registry items: 8 files, 852 lines, and the npm packages `clsx`, `tailwind-merge`, `tailwind-variants`.

## Built on

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

## 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)
- [iPad](https://gelatinui.com/components/ipad.md)
- [iOS Status Bar](https://gelatinui.com/components/ios-status-bar.md)
- [Device Frame](https://gelatinui.com/components/device-frame.md)

## Accessibility

The hardware and the system UI are hidden from screen readers. The app on the screen is read.

The root is a figure named after the device. Set `aria-label` to name it after your app.
