Window

Overlays & Feedback

Authentic macOS window container with traffic lights, titlebar, sidebar, content area, and status bar.

Installation

$npx shadcn-macos@latest add window

Examples

Interactive Window Demo
Finder — Documents4 items, 128.4 GB available

Project Assets

12 items

Design Specs.pdf

2.4 MB

4 items128.4 GB available

Props

<Window />
PropTypeDefaultDescription
titlestringAccessible title for the window.
isFocusedbooleantrueActive window focus state controlling titlebar accent saturation.
classNamestringCustom CSS classes.
<WindowHeader />
PropTypeDefaultDescription
titleReact.ReactNodeTitle text or custom center breadcrumbs widget.
alignTitle"left" | "center""center"Alignment of the window title text.
showTrafficLightsbooleantrueWhether to render red, yellow, green window dots.
onClose() => voidClose traffic light click handler.
onMinimize() => voidMinimize traffic light click handler.
onMaximize() => voidMaximize traffic light click handler.
<WindowSidebar /> / <WindowContent /> / <WindowFooter />
PropTypeDefaultDescription
classNamestringCustom classes.
childrenReact.ReactNodePartition content.