WorkspaceShell
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: 0and--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/uiimport { WorkspaceShell } from '@stackunseen/ui/workspace';@stackunseen/ui/styles.cssParts
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.
Header
Across the whole workspace, or above the main area only with
headerPlacement="main"so navigation runs full height, as in chat apps.Navigation
Stacks on narrow screens. In responsive mode it gets a toggle: it collapses on wide screens and becomes a drawer on narrow ones.
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.Inspector
Optional details beside the main area, such as the selected item.
Footer
Optional status or actions along the bottom.
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 | mainAll 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
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