---
title: "Windows Window"
description: "A Windows 11 app window on Mica with a 32 or 48 px title bar, a search box, and maximized and inactive looks."
url: https://gelatinui.com/components/windows-window
markdown_url: https://gelatinui.com/components/windows-window.md
access: free
install: "npx shadcn@latest add @gelatin-ui/windows-window"
registry_item: https://gelatinui.com/r/windows-window.json
version: "2026-11-10"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Windows Window

> A Windows 11 app window on Mica with a 32 or 48 px title bar, a search box, and maximized and inactive looks.

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

## When to use it

Best for: A Windows 11 app window on Mica around real UI.

- Use it for a desktop app page.
- Use the `tall` kind for a title bar with a search box.
- Set `maximized` for a window with no corner radius.

## When not to use it

- For a Mac window, use a [macOS Window](https://gelatinui.com/components/macos-window.md).
- For a website, use a [Browser Window](https://gelatinui.com/components/browser-window.md).

## Notes for agents

- The window does not scale. It is the width of its parent.
- The chrome keeps the Windows layout in right to left.

## Anatomy

```text
WindowsWindow
├─ WindowsWindowTitleBar (0..n)
├─ WindowsWindowHeading (0..n)
├─ WindowsWindowIcon (0..n)
├─ WindowsWindowTitle (0..n)
├─ WindowsWindowSearch (0..n)
├─ WindowsWindowControls (0..n)
└─ WindowsWindowContent (0..n)
```

## API reference

### WindowsWindow

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `active` | `boolean` | true |  |
| `kind` | `"default" \| "tall"` | "default" |  |
| `maximized` | `boolean` | false |  |
| `height` | `string \| number` |  | A fixed window height in px or any CSS length. Default: the bar plus the content. |
| `appearance` | `MockupAppearance` | "system" | The look of the chrome: the page theme (`system`), or always light or dark. |

### WindowsWindowTitleBar

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

### WindowsWindowHeading

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

### WindowsWindowIcon

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

### WindowsWindowTitle

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

### WindowsWindowSearch

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

### WindowsWindowControls

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

### WindowsWindowContent

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

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| WindowsWindow | `windows-window` | `data-appearance` | `--windows-window-edge`, `--windows-window-field`, `--windows-window-field-shadow`, `--windows-window-mica`, `--windows-window-placeholder`, `--windows-window-shadow`, `--windows-window-text` |  |
| WindowsWindowTitleBar | `windows-window-title-bar` |  |  |  |
| WindowsWindowHeading | `windows-window-heading` |  |  |  |
| WindowsWindowIcon | `windows-window-icon` |  |  |  |
| WindowsWindowTitle | `windows-window-title` |  |  |  |
| WindowsWindowSearch | `windows-window-search` |  |  |  |
| WindowsWindowControls | `windows-window-controls` |  |  |  |
| WindowsWindowContent | `windows-window-content` |  |  |  |

## Usage

Compose the title bar and the content.

```tsx title="windows-frame.tsx"
import {
  WindowsWindow,
  WindowsWindowContent,
  WindowsWindowControls,
  WindowsWindowHeading,
  WindowsWindowTitle,
  WindowsWindowTitleBar,
} from "@/components/mockups/windows-window";

export function WindowsFrame() {
  return (
    <WindowsWindow>
      <WindowsWindowTitleBar>
        <WindowsWindowHeading>
          <WindowsWindowTitle>Northwind</WindowsWindowTitle>
        </WindowsWindowHeading>
        <WindowsWindowControls />
      </WindowsWindowTitleBar>
      <WindowsWindowContent>Your app</WindowsWindowContent>
    </WindowsWindow>
  );
}
```

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

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

## Built on

- [Windows Caption Buttons](https://gelatinui.com/components/windows-caption-buttons.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

- [Browser Window](https://gelatinui.com/components/browser-window.md)
- [Windows Caption Buttons](https://gelatinui.com/components/windows-caption-buttons.md)

## Accessibility

The title bar is a picture that screen readers skip.

The content stays interactive.
