Window frame preview

Window frame

Desktop window chrome for product shots and illustrations: a browser (address, back/forward, tabs), an app window (centred title, toolbar), an app with a full-height sidebar, a dark terminal and a frosted glass browser. Comes with skeleton bars and terminal lines for faking UI inside it. Follows the theme.

  • Group
    Product scenes
  • Origin
    Adapted · Stageshow (benjitaylor/skills) · source
  • License
    MIT
  • Added
    Oct 31
npx shadcn@latest add @deank/window-frame

The registry stays private. Install from the repo with a GitHub token — see the README.

Usage

import { WindowFrame } from "@/registry/components/window-frame/window-frame";

<WindowFrame>Label</WindowFrame>

Props

PropTypeDefaultDescription
url?ReactNodeBrowser: the address. A string or any node.
urlShape?"rounded" | "pill""rounded"Browser: round address field (current Safari / Chrome) instead of the rounded rectangle.
nav?booleanBrowser: back and forward chevrons before the address.
tabs?ReactNode[]Browser: tab titles above the address bar; activeTab is highlighted (default the first).
activeTab?number0
title?stringApp: the window title, centred in the bar (left-aligned beside a sidebar). Terminal: the dim centred title.
sidebar?ReactNodeApp: a full-height sidebar; the traffic lights sit in its top, like Mail, Notes, Linear or Slack.
sidebarWidth?number180
toolbar?ReactNodeControls at the right end of the bar (buttons, avatars, a share button).
chrome?WindowChrome"native"native (default), terminal (dark, no rule under the bar), glass (frosted browser frame, page as an inset card).
lights?"color" | "grey""color"Traffic-light colours: macOS colours (default) or quiet grey.
receded?booleanFade the window back so another window in front reads as the subject.
bodyProps?HTMLAttributes<HTMLDivElement>Props for the content area under the bar.
children?ReactNode

When to use

Framing a product screenshot or a faked UI in a landing page, docs, changelog, blog post or social image: a browser for web apps, an app window for desktop tools, a terminal for CLI install steps. Pair with WindowBar skeletons when the content is illustrative, not real.

When not to use

Real application layout (this is decoration around content, not an app shell; use nav-sidebar for real navigation); phone mockups; framing code you want people to copy (use code-block).

Related

Code block · Artifact preview · Tab overload · Agent cursor