Back to Components

Shell

AppShell

Full-window header / sidebar / main / footer scaffold. Compose-style — pass any of the four region snippets and the grid auto-adapts.

Examples

Compose with Toolbar + Sidebar

Main scrollable region.
<AppShell>
  {#snippet header()}<Toolbar>...</Toolbar>{/snippet}
  {#snippet sidebar()}<Sidebar>...</Sidebar>{/snippet}
  Main content
</AppShell>

Props

PropTypeDefaultDescription
sidebarSide'left' | 'right''left'Which side the sidebar pins to.
sidebarWidthstring'240px'CSS length for the sidebar column.
headerHeightstring'40px'CSS length for the top header.
headerSnippetTop region (typically <Toolbar /> or <TitleBar />).
sidebarSnippetSide region (typically <Sidebar />).
footerSnippetBottom region (status bar, etc.).
childrenSnippetMain scrollable content.

Install

CLI

npx @a3tai/mittsu add app-shell