Sidebar shell
A wide sidebar with icon navigation, sections and the user at the bottom.
In use
A full-page layout, so it is shown in its own screen: Fleet. Open it full screen there, and narrow the window below 1024px to see the top bar and the navigation drawer.
Code
<SidebarShell
brand={<Menu trigger={<AppButton />} items={[{ label: "Operations", description: "Routes, vehicles and drivers", icon: <Truck />, current: true, onSelect }]} />}
brandMark={<Logo />}
subtitle="Operations"
collapsible
nav={[
{ items: [
{ label: "Overview", href: "/", icon: <LayoutDashboard />, current: true },
{ label: "Routes", href: "/routes", icon: <Route />, children: [{ label: "Planned", href: "/routes/planned" }] },
] },
{ label: "Reports", items: [{ label: "Notifications", href: "/notifications", icon: <Bell />, badge: "5" }] },
]}
footer={<UserCard />}
collapsedFooter={<Avatar name="Mara Okafor" />}
renderLink={(p) => <NextLink {...p} />}
>
{children}
</SidebarShell>