Skip to Content

AppShell

The admin layout scaffold: an optional fixed-width sidebar, an optional header bar, and the main content as children. Pairs with Sidebar and Navbar.

Header
Main content
import { AppShell, Sidebar, Navbar } from '@gg-software/ui'; <AppShell sidebarWidth={240} sidebar={<Sidebar sections={sections} activeKey={active} onSelect={setActive} />} header={<Navbar brand="Acme Admin" actions={<UserMenu />} />} > <PageContent /> </AppShell>

Props

PropTypeDefaultDescription
children*ReactNode—content rendered inside the component
sidebarReactNode—
headerReactNode—
sidebarWidthstring | number240sidebar width (px number or CSS length)
classNamestring—
styleCSSProperties—

* required · generated from packages/ui/src/layout/AppShell/AppShell.tsx