---
title: "Windows Caption Buttons"
description: "The minimize, maximize or restore, and close buttons of Windows 11, in the WinUI and Chrome sizes."
url: https://gelatinui.com/components/windows-caption-buttons
markdown_url: https://gelatinui.com/components/windows-caption-buttons.md
access: free
install: "npx shadcn@latest add @gelatin-ui/windows-caption-buttons"
registry_item: https://gelatinui.com/r/windows-caption-buttons.json
version: "2026-11-10"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Windows Caption Buttons

> The minimize, maximize or restore, and close buttons of Windows 11, in the WinUI and Chrome sizes.

Page: https://gelatinui.com/components/windows-caption-buttons

## When to use it

Best for: A picture of the minimize, maximize, and close buttons of Windows 11.

- Use it in a title bar mockup.
- Set `size` for the 32 or 48 title bar.
- Set `maximized` for the restore glyph.

## When not to use it

- For a full frame, use a [Windows Window](https://gelatinui.com/components/windows-window.md).

## Notes for agents

- These are pictures, not buttons. They do nothing.
- `state` pins one look for a showcase.

## Anatomy

```text
WindowsCaptionButtons
```

## API reference

### WindowsCaptionButtons

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `size` | `"default" \| "lg"` |  |  |
| `state` | `"hover-close" \| "hover-minimize" \| "inactive" \| "pressed-close" \| "rest"` | "rest" |  |
| `variant` | `"chrome" \| "default"` |  |  |
| `maximized` | `boolean` | false | The window fills the screen: the middle button shows the restore glyph. |
| `appearance` | `MockupAppearance` | "system" | The look of the glyphs and fills: the page theme (`system`), or always light or dark. |

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| WindowsCaptionButtons | `windows-caption-buttons` | `data-appearance` | `--windows-caption-buttons-chrome-hover`, `--windows-caption-buttons-chrome-pressed`, `--windows-caption-buttons-glyph`, `--windows-caption-buttons-hover`, `--windows-caption-buttons-pressed` |  |

## Usage

Import Windows Caption Buttons and compose its parts.

```tsx title="windows-caption-buttons.tsx"
import { WindowsCaptionButtons } from "@/components/mockups/windows-caption-buttons";

export function WindowsCaptionButtonsDemo() {
  return (
    <div className="flex w-80 justify-end overflow-hidden rounded-lg bg-muted ring-1 ring-border">
      <WindowsCaptionButtons size="default" variant="default" state="rest" maximized appearance="system" />
    </div>
  );
}
```

## 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-caption-buttons
```

It adds 3 registry items: 3 files, 322 lines, and the npm packages `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

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

## Accessibility

Screen readers skip it, because the buttons do nothing.
