AppShell
ProFrame of in-app pages: a shell background with a collapsible left sidebar slot, a page header slot, and a tray or white main content area.
Pro component. AppShell is a paid component. It ships in @lusterui/react-pro, a .tgz you download from the site after purchase.
Usage
import { PageHeader } from "@lusterui/react";
import { AppShell, SidebarNav } from "@lusterui/react-pro";
<AppShell
sidebar={({ collapsed, setCollapsed }) => (
<SidebarNav
aria-label="Main"
workspace={{ name: "Acme Studio" }}
sections={sections}
currentId="home"
collapsed={collapsed}
onCollapsedChange={setCollapsed}
/>
)}
header={<PageHeader title="Dashboard" description="Last 7 days." />}
>
{/* Cards and tables inside <main> */}
</AppShell>
Props
| Prop | Type | Default |
|---|---|---|
sidebar | ReactNode | ((state: AppShellSidebarState) => ReactNode). Pass a render function to forward collapsed and setCollapsed to SidebarNav. | – |
header | ReactNode, page header slot (PageHeader) above the page content. | – |
children | ReactNode, page content rendered inside the <main> landmark. | – |
surface | 'tray' | 'white', grey content area for white cards or one white surface (e.g. settings). | 'tray' |
height | 'viewport' | 'container', fills 100dvh with a scrolling content area or fills its parent. | 'viewport' |
collapsed / defaultCollapsed / onCollapsedChange | boolean / (collapsed: boolean) => void, controlled or uncontrolled sidebar collapsed state. | false |
collapseBelow | number, viewport width (px) at or below which the sidebar collapses automatically when uncontrolled (0 disables). | 1024 |
className | string, appended to the root <div> for layout. | – |
When to use something else
- Marketing, sign-in, and landing pages: use a top-navigation layout with PageHeader (no shell).
- Full-screen editors and presentation mode: use a plain full-viewport layout without a shell.
- A card inside a page: use Surface.
Nucleo Icons, https://nucleoapp.com/. Copyright © Nucleo. Copyright notice. Component examples use Hugeicons free (Stroke Rounded), MIT License, Copyright (c) 2025 Hugeicons. License