Window Chrome

A macOS style window frame for React with three traffic light dots, a truncated title bar and a padded content area for framing demos and screenshots.

src/registry/ui/window-chrome.tsx/r/window-chrome.json

Installation#

bash
npx shadcn@latest add @minidev/window-chrome

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/window-chrome.json

Usage#

tsx
import { WindowChrome } from "@/components/ui/window-chrome"

export function Example() {
  return (
    <WindowChrome title="minidev — audit">
      <p className="text-sm text-fg-muted">Screenshots + axe on every gallery route.</p>
    </WindowChrome>
  )
}

API reference#

WindowChrome props
PropTypeDefault
titlestring"minidev — gallery"
childrenReact.ReactNode-
classNamestring-

Examples#

All layout components