Window Frame
Frames a piece of UI as a desktop app window.
@paneui/themeclass-variance-authority
Installation
pnpm dlx shadcn@latest add @paneui/window-frameUsage
Composition
Examples
Corners
The body is inset 6px and its corner is the frame's minus that inset, so the two stay concentric at every radius preset and in the Paper style.
Decoration only
The window dots are hidden from assistive tech and do nothing. Put real controls in WindowFrameActions.
WindowFrame
Also accepts every prop of div.
- variant= "solid"
- "solid" | "glass"
glassis a translucent, blurred shell for use over pictures.- size= "default"
- "sm" | "default"
- Title bar height: 32px or 36px.
| Prop | Type | Default | Description |
|---|---|---|---|
| variant | "solid" | "glass" | "solid" | glass is a translucent, blurred shell for use over pictures. |
| size | "sm" | "default" | "default" | Title bar height: 32px or 36px. |
- data-variant
- The variant.
- data-size
- The size.
| Data attribute | Description |
|---|---|
| data-variant | The variant. |
| data-size | The size. |
WindowFrameBar
Also accepts every prop of div.
- controls= true
- boolean
- Starts the bar with the three window dots.
| Prop | Type | Default | Description |
|---|---|---|---|
| controls | boolean | true | Starts the bar with the three window dots. |