Skip to content

Window

A container component styled like a macOS window.

Installation

import { Window } from '@smc/darwin-ui';

Usage

import { Window } from '@smc/darwin-ui';
export function Example() {
return (
<Window title="My Application" showControls>
<p>Window content goes here.</p>
</Window>
);
}

Features

  • macOS-style title bar
  • Optional traffic light controls
  • Close button functionality
  • Glass-morphism styling

API Reference

Props

PropTypeDefaultDescription
titlestring-Window title
showControlsbooleantrueShow close button
onClose() => void-Close handler
childrenReactNode-Window content