All registry items
blocks/r/tonal-app-shell.json
Tonal App Shell
Cool tonal outer workspace frame with interactive pill navigation rail, quota card, and elevated content sheet.
Tonal App Shell
Toggle Tablet or Mobile for real isolated iframe breakpoints, or switch to Code for full source.
Overview
Drop KPI grids, charts, or hairline data tables inside this elevated workspace sheet.
Installation
npx shadcn@latest add https://tonal.harlo.dev/r/tonal-app-shell.jsonDependencies
Tonal Registry Dependencies
npm Packages
clsxtailwind-mergelucide-react
Usage
import { TonalAppShell, TonalQuotaCard } from "@/components/tonal/blocks/tonal-app-shell";
<TonalAppShell items={navItems} activeId={active} onSelect={setActive} sidebarFooter={<TonalQuotaCard />}>
...
</TonalAppShell>Props & Tokens API
| Prop | Type | Default | Description |
|---|---|---|---|
| items | TonalNavItem[] | DEFAULT_APP_SHELL_NAV | Sidebar navigation items. |
| activeId | string | — | Controlled active nav ID. |
| onSelect | (id: string) => void | — | Called when a rail item is selected. |
| sidebarFooter | ReactNode | <TonalQuotaCard /> | Custom bottom sidebar card or null to hide. |
| header | ReactNode | — | Top sheet header slot. |