Web only
App shell
sidebar of 4–8 destinations on desktop, a sheet on mobile · active item follows the URL
<div className="border-border h-80 w-full overflow-hidden rounded-xl border [&>div]:min-h-full"> <AppShell brand="Northwind" nav={[ { href: '/components', label: 'Overview', icon: HomeIcon }, { href: '#customers', label: 'Customers', icon: UsersIcon }, { href: '#billing', label: 'Billing', icon: CreditCardIcon }, ]} topbar={ <Avatar className="size-8"> <AvatarFallback>AM</AvatarFallback> </Avatar> }> <PageHeader title="Overview" description="The app shell puts the sidebar here." /> </AppShell></div>Usage
The frame of every logged-in web app prototype. Put it in the prototype’s layout.tsx, not in each page.
API
<AppShell brand nav={[{href,label,icon}]} footer? topbar?>{page}</AppShell>Get it
Already in every copy of the web kit:
import { AppShell } from '@/components/kit/app-shell';Details
- Exports
AppShell- Packages
- cn@^0.5.2, lucide-react@^1.52.0
- Installs with
- @halftone-web/button, @halftone-web/lib-link, @halftone-web/sheet
- Also searched as
- sidebar, layout, navigation, dashboard shell
- Registry JSON
- /r/web/app-shell.json
Agents: the whole registry is at /llms.txt.