The application frame: top bar (brand slot, tenant, page actions, clock and ⌘K search), icon rail of workspaces with travelling name tooltips, phone bottom bar with More, skip links, panel column; ThemeToggle and useTheme, ShellClock, the rail slot context, slow-loading state and pop-out windows (Document Picture-in-Picture).
Part of High Command Pro. The preview and props are open to everyone; installing it needs your license key. Set up your key · Pricing
$ npx shadcn@latest add @highcommand/app-shellCopies the source into your project and pulls in what it needs (3 other items). First time? Add the registry to components.json.
The application frame: a top bar (brand, tenant, the page's own actions, then time and search), the icon rail of workspaces with travelling name tooltips (a bottom bar with "More" on a phone), skip links, the main region and an optional right column for panels.
onOpenSearchrequired() => void—Opens your search or command palette (the bar's search button; bind ⌘K yourself, see `useModK`).
workspacesrequiredWorkspace[]—The rail's workspaces, in order.
activerequiredstring—The id of the workspace on screen.
onNavigaterequired(id: string) => void—A rail item (or the brand) was chosen.
childrenrequiredReactNode—The page: rendered in the main region.
tenantReactNode—The organisation's name beside the brand (hidden on small screens).
brandReactNode—Your logo or wordmark, top left: a button to the first workspace.
brandLabelstring"Home"The brand button's accessible name.
searchLabelstring"Search accounts, orders, shipments"The search button's placeholder text.
timeReactNode—A clock and its controls (`ShellClock`, a replay pill): the shell's own, beside search on every workspace.
helpReactNode—The shortcut sheet's button and the signed-in user's menu: the rail's foot; on a phone the account sits at the top bar's end.
accountReactNode—The signed-in user's menu: in the rail's foot after `help`, and at the top bar's end on a phone.
pageActionsReactNode—The current workspace's own controls (Edit layout): the same place in the top bar on every workspace.
panelsReactNode—The right column (a PanelStack).
classNamestring—Extra class names for the shell's root element.
onIntent(id: string) => void—A person is about to open this workspace (pointer resting on its rail item, keyboard focus, a press): the app can fetch ahead.
skipLinks{ label: string; target: string }[]—The first tab stops: links past the rail to a page's regions, by element id. Every workspace has at least "Main content".
<ThemeToggle />2 propsThe light/dark switch (in the rail's foot it gets the rail's name tooltip).themerequiredTheme—The theme now in effect; the button offers the other one.
onTogglerequired() => void—Fires when the button is pressed.
<TimeSearch />3 propsThe top bar's time and search, one group so the clock and search keep their place whatever the page: the clock (any node, often a `ShellClock`) hidden on small screens, then the search button with its ⌘K hint.onOpenSearchrequired() => void—Fires when the search button is pressed.
timeReactNode—The clock node (often a `ShellClock`); hidden on small screens.
labelstring"Search accounts, orders, shipments"The search button's visible text (default: a hint to search accounts, orders and shipments).
<ShellClock />6 propsThe top bar's clock, the shell's `time` slot: a state word (Live, Paused, Replay), the time in the mono face with its zone, the date (hidden under 1366px), then any controls (a replay button, a speed switch) in the pill's own row.nowrequiredstring | null—The instant to show (ISO).
stateReactNode—A word or badge before the time ("Live", "Paused").
timeZonestring—An IANA zone (default: the viewer's).
replayboolean—Draw it as a replay (accent background).
childrenReactNode—Controls after the time (buttons, a `Segmented` speed switch).
classNamestring—Extra class names for the clock pill.
<RailSlot />0 propsContext carrying what the shell offers a workspace (see `RailSlotCtx`); read it with `useRailSlot`.No props; takes its root element's HTML attributes.
<SlowLoading />7 props"Loading", and after `afterMs` a designed state instead of an endless spinner: what is slow, an optional server check line, your help text, and Retry.labelrequiredstring—The loading line ("Loading shipments").
whatrequiredstring—What is loading, for the slow state's title ("Shipments").
onRetryrequired() => void—Retry: starts the wait again and asks the caller to reload.
rowsnumber8Skeleton rows while loading.
afterMsnumberSLOW_LOAD_MSMilliseconds before the slow state shows.
checkHealth() => Promise<string>—Asked once the load is slow: resolves to a line about the server ("database reachable, migrations 42/42").
helpReactNode—What the person can do (a restart instruction, a status page link).
useTheme(storageKey?: string): { theme: Theme; toggle: () => void; setTheme: (t: Theme) => void; }The theme on <html data-theme>, remembered on this device (`hq-theme`). High Command is dark-first: dark until someone picks light. Returns the theme and a toggle for `ThemeToggle`.
useModK(onToggle: () => void): voidCalls `onToggle` on ⌘K (Ctrl+K elsewhere), the shortcut the search button advertises.
useNarrow(px?: number): booleanTrue below the phone breakpoint, where the rail becomes a bottom bar with no room for a slot.
useRailSlot(): RailSlotCtxThe shell's `RailSlotCtx`: register the command band, and read or reverse the panel stack's pop-out state.
usePopout(surface: string, meta: PopMeta): { supported: boolean; win: Window | null; onTop: boolean; canPin: boolean; open: () => Promise<void>; close: () => void; pin: () => undefined; }One surface's pop-out: its window (null while it is in the page), whether that window is the on-top one, and open, close and keep on top. The window closes when the surface's owner leaves the page (another workspace).