AppDock

A floating macOS-style dock — a glass navigation pill pinned to any edge. Drag it between edges with a live preview, and it glides into place.

Install: pnpm add-component AppDock

Live dock

A screen of its own, with a real dock inside it. Drag the grip to any edge — nothing re-docks mid-drag, the bar rides the cursor while a ghost shows where it will land. Inbox carries a badge, Search is an action item, Archive is disabled.

Basic usage

Four items, no options. The dock is fixed-position and renders outside the content flow, so it goes in your layout rather than a page. Hues name your own semantic tokens, so it follows a theme swap with everything else.

Two docks, one page

scope="container" pins the dock to its containing block instead of the screen, measures the drag edges against that box, and keeps its edge private to the instance — so several can coexist. Drag one and the other stays put.

Sections and roles

Sections render with a separator between them. Items with a `roles` array are hidden unless the `role` prop matches — items without one are always visible.

Reserving space in the viewport layout

A viewport dock floats, so the content column has to reserve room on the same edge. Bind CONTENT_CLEARANCE to the preview position rather than the committed one, and the whole page previews the move while a drag is in flight.

API