WorkspaceShell

Markdown

A full app frame with header, navigation, content, inspector and footer areas that adapts to screen size.

Good to know

  • Scrolling panes keep 4px of padding and room for a scrollbar. When a pane’s content scrolls itself (a chat, a sidebar list), set --ai-workspace-pane-padding: 0 and --ai-workspace-pane-gutter: auto.

Used in App shells.

Use it for
A full app frame with header, navigation, content, inspector and footer.
Not for
Single content pages. Try SplitPane.

WorkspaceShell preview

Loading example…

Installation

npm install @stackunseen/ui
import { WorkspaceShell } from '@stackunseen/ui/workspace';
Styles: @stackunseen/ui/styles.css

Parts

The frame of an app screen. It only lays out the slots you fill; routing, access and state stay with your app, and each slot mounts once.

  1. Header

    Across the whole workspace, or above the main area only with headerPlacement="main" so navigation runs full height, as in chat apps.

    Propsheader headerLabel headerPlacement

  2. Navigation

    Stacks on narrow screens. In responsive mode it gets a toggle: it collapses on wide screens and becomes a drawer on narrow ones.

    Propsnavigation navigationLabel navigationMode navigationOpen onNavigationOpenChange navigationBreakpoint navigationToggleLabel

  3. Main

    Your content. Use mainAs="section" inside a page that already has a main landmark; scrollMode="panes" gives each column its own scroll in a fixed-height host.

    Propsmain mainLabel mainAs scrollMode

  4. Inspector

    Optional details beside the main area, such as the selected item.

    Propsinspector inspectorLabel inspectorAs

  5. Footer

    Optional status or actions along the bottom.

    Propsfooter footerLabel

Usage and props

Pass your real navigation and control which panels show. Use mainAs="section" when it sits inside another main region.

Supported inputs

This is the public signature used by this example. Open Code to see how the values and callbacks fit together.

main · header? · navigation? · inspector? · footer? · mainAs? · scrollMode? · variant? · navigationMode?: inline | responsive · navigationOpen? · onNavigationOpenChange? · navigationBreakpoint? · headerPlacement?: span | main
How state and callbacks work
All props

Loading…

For your coding agent

Give the agent this page instead of a screenshot. The prompt wraps the page with the install and import lines and the rule that your server, not a click, completes an action.

Contract
main · header? · navigation? · inspector? · footer? · mainAs? · scrollMode? · variant? · navigationMode?: inline | responsive · navigationOpen? · onNavigationOpenChange? · navigationBreakpoint? · headerPlacement?: span | main
Keeps honest
Pass your real navigation and control which panels show. Use mainAs="section" when it sits inside another main region.
MCP
read_component "WorkspaceShell" on the docs endpoint
Open the Markdown file

Keyboard and customization

Keyboard

Slot controls retain document Tab order. Flow mode shares page scrolling; panes mode requires a bounded height and named reading regions. In responsive mode the toggle reports aria-expanded; a narrow drawer takes focus, closes on Escape, the scrim or a followed link, and returns focus to the toggle.

Customization

Change shared colors, spacing, corners and icons with the theme. Use the component's supported props to adapt its content and layout. Customization guide and Theme Studio