---
title: "Browser Window"
description: "A Safari, Chrome, Edge, or minimal browser frame with tabs, an address bar, and a loading state, around a real page."
url: https://gelatinui.com/components/browser-window
markdown_url: https://gelatinui.com/components/browser-window.md
access: free
install: "npx shadcn@latest add @gelatin-ui/browser-window"
registry_item: https://gelatinui.com/r/browser-window.json
version: "2026-11-10"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Browser Window

> A Safari, Chrome, Edge, or minimal browser frame with tabs, an address bar, and a loading state, around a real page.

Page: https://gelatinui.com/components/browser-window

## When to use it

Best for: A Safari, Chrome, Edge, or minimal frame around a real page.

- Use it on a marketing page.
- Use `minimal` when the frame must stay quiet.
- Set `appearance` to pin the chrome to light or dark.

## When not to use it

- For an app window, use a [macOS Window](https://gelatinui.com/components/macos-window.md).

## Notes for agents

- The chrome is a picture, so screen readers skip it. The content stays real.
- Compose `BrowserWindowBar` and `BrowserWindowContent`.

## Anatomy

```text
BrowserWindow
├─ BrowserWindowBar (0..n)
├─ BrowserWindowTab (0..n)
├─ BrowserWindowFavicon (0..n)
├─ BrowserWindowTabTitle (0..n)
└─ BrowserWindowContent (0..n)
```

## API reference

### BrowserWindow

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `browser` | `"chrome-mac" \| "chrome-windows" \| "edge" \| "minimal" \| "safari" \| "safari-compact"` | "safari" | The browser chrome. Default `safari`. |
| `url` | `string` |  | The page address. Safari, Edge, and the minimal frame show the domain with a lock; Chrome shows the domain and path. Empty: the placeholder. |
| `activeTab` | `number` | 0 | The index of the active `BrowserWindowTab`. Default 0. |
| `status` | `DataStatus` | "ready" | The load state of the page. Default `ready`. `loading`: a progress line (Safari, minimal) or the stop button (Chrome, Edge). `empty` and `error` show as `ready` until the item has their parts. |
| `dots` | `"color" \| "gray" \| "none"` | "color" | The window controls of the minimal frame: the traffic light colors, gray, or none. |
| `height` | `string \| number` |  | A fixed window height in px or any CSS length. Default: the chrome plus the page. |
| `appearance` | `MockupAppearance` | "system" | The look of the chrome: the page theme (`system`), or always light or dark. |

### BrowserWindowBar

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

### BrowserWindowTabs

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `children` | `ReactNode` |  | The `BrowserWindowTab` parts, in order. The root's `activeTab` names the active one. |

### BrowserWindowTab

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

### BrowserWindowFavicon

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

### BrowserWindowTabTitle

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

### BrowserWindowContent

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

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| BrowserWindow | `browser-window` | `data-appearance` | `--browser-window-chrome-header`, `--browser-window-chrome-icon`, `--browser-window-chrome-line`, `--browser-window-chrome-omnibox`, `--browser-window-chrome-path`, `--browser-window-chrome-separator`, `--browser-window-chrome-text`, `--browser-window-chrome-toolbar`, `--browser-window-edge-field`, `--browser-window-edge-field-ring`, `--browser-window-edge-icon`, `--browser-window-edge-lock`, `--browser-window-edge-page`, `--browser-window-edge-tab`, `--browser-window-edge-tab-shadow`, `--browser-window-label-muted`, `--browser-window-progress`, `--browser-window-safari-bar`, `--browser-window-safari-icon-off`, `--browser-window-safari-lock`, `--browser-window-safari-tab`, `--browser-window-safari-tab-idle`, `--browser-window-safari-tab-shadow`, `--macos-window-glass`, `--macos-window-glass-shadow`, `--macos-window-icon`, `--macos-window-shadow`, `--macos-window-surface`, `--windows-window-mica`, `--windows-window-shadow` |  |
| BrowserWindowBar | `browser-window-bar` |  |  |  |
| BrowserWindowTab | `browser-window-tab` |  |  |  |
| BrowserWindowFavicon | `browser-window-favicon` |  | `--browser-window-chrome-icon`, `--browser-window-edge-icon` |  |
| BrowserWindowTabTitle | `browser-window-tab-title` |  |  |  |
| BrowserWindowContent | `browser-window-content` |  |  |  |

## Usage

Pick a browser, and put your page in the content.

```tsx title="browser-frame.tsx"
import { BrowserWindow, BrowserWindowContent } from "@/components/mockups/browser-window";

export function BrowserFrame() {
  return (
    <BrowserWindow browser="minimal" url="northwind.dev">
      <BrowserWindowContent>Your page</BrowserWindowContent>
    </BrowserWindow>
  );
}
```

## 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/browser-window
```

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

## Built on

- [macOS Traffic Lights](https://gelatinui.com/components/macos-traffic-lights.md)
- [macOS Window](https://gelatinui.com/components/macos-window.md)
- [Windows Caption Buttons](https://gelatinui.com/components/windows-caption-buttons.md)
- [Windows Window](https://gelatinui.com/components/windows-window.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

- [Windows Window](https://gelatinui.com/components/windows-window.md)
- [Windows Caption Buttons](https://gelatinui.com/components/windows-caption-buttons.md)
- [macOS Traffic Lights](https://gelatinui.com/components/macos-traffic-lights.md)
- [macOS Window](https://gelatinui.com/components/macos-window.md)

## Accessibility

The chrome is hidden from screen readers, and the content is read.
