AppShell

Full-page application shell with persisted collapsible sidebar. Includes a signal-driven top progress bar with determinate progress, error state, and dismissible error strip.

Category: layout · WCAG 2.1-AA · layout, shell, sidebar, navigation

States

Props

PropTypeDefaultDescription
footerReactNodeOptional sticky footer rendered below the content area.
sideNavMode'push' | 'overlay'pushpush (default): sidebar takes grid space; overlay: sidebar floats over content.
headerReactNodeTop header slot
sideNavReactNodeSide navigation slot
asideReactNodeRight aside slot
childrenReactNodeMain content
persistKeystring | falsecascade.appshelllocalStorage key prefix. Pass false to disable persistence.
stateShellStateExternal shell state from createShellState(). Created internally when omitted.

Design tokens

When to use

When not to use

Examples

Basic

App shell with collapsible nav

<AppShell header={<Header />} sideNav={<Nav />}>content</AppShell>

Related components

← Back to docs