Contents

Panels · Components

Desktop

The area windows live in: tracks its size, draws the tiling gutters, renders open apps.

$ pnpm dlx shadcn@latest add @nynxz/desktop

Usage

Give the desktop a size; the workspace's bounds follow it as it resizes. It also draws the draggable gutters between tiles and the junctions where they meet.

<Desktop className="flex-1">
  <AppWindows />
</Desktop>

AppWindows renders a Window for every open window that belongs to a registered app, with the app's icon and features, so the desktop needs no per-app markup.

Props

PropType
bracketsbooleandraw corner brackets (default true)
classNamestringsize it here

First paint

Until the desktop has measured itself, windows don't animate, and tiled ones are positioned as CSS proportions of it, so pre-rendered HTML is already right at the visitor's screen size. Nothing slides into place on load.