Import macOS Window and compose its parts.
macos-window.tsx
MacosWindow
<figure>| Prop | Type | Default | Description |
|---|---|---|---|
| active | boolean | true | |
| kind | "compact""titlebar""toolbar" | "titlebar" | |
| height | string | number | — | A fixed window height in px or any CSS length. Default: the bar plus the content. |
| appearance | "dark""light""system" | "system" | The look of the chrome: the page theme (system), or always light or dark. |
| ...props | <figure> attributes | — | Every other attribute goes to the <figure>, with a ref. |
MacosWindowSidebar
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
MacosWindowTitleBar
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
MacosWindowTrafficLights
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| show | boolean | — | |
| size | "default""sm" | — | |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
MacosWindowHeading
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
MacosWindowTitle
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
MacosWindowSubtitle
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
MacosWindowContent
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
MacosWindowToolbarGroup
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
MacosWindowSearch
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
MacosWindowMagnifier
<svg>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <svg> attributes | — | Every other attribute goes to the <svg>, with a ref. |
Built with
Installs with macOS Window
- Components
- macOS Traffic Lights





