AppShell

Pro

Frame 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.

See pricing

Static preview of AppShell with a sidebar navigation rail, PageHeader, and KPI cards on the grey tray.

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

PropTypeDefault
sidebarReactNode | ((state: AppShellSidebarState) => ReactNode). Pass a render function to forward collapsed and setCollapsed to SidebarNav.–
headerReactNode, page header slot (PageHeader) above the page content.–
childrenReactNode, 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 / onCollapsedChangeboolean / (collapsed: boolean) => void, controlled or uncontrolled sidebar collapsed state.false
collapseBelownumber, viewport width (px) at or below which the sidebar collapses automatically when uncontrolled (0 disables).1024
classNamestring, 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