# App shell, composed

- **[App UI](/app/)**
- **[App shell](/app/shell/)**
- **App shell, composed**

The sidebar, the top bar and the content in one frame, the way an app wears them: fold the sidebar into its rail, open the account menu, move through the breadcrumbs.

## Source

The screen as installed by the command above. Render it inside Theme, once near the root of your app.

frame.tsx

```
import AppDashboardStats, { spec as statsSpec } from '@/components/klarhimmel/blocks/app-dashboard-stats';
import AppShellSidebar, { spec as sidebarSpec } from '@/components/klarhimmel/blocks/app-shell-sidebar';
import AppShellTopbar, { spec as topbarSpec } from '@/components/klarhimmel/blocks/app-shell-topbar';

/**
 * The shell as one frame: sidebar on the left (it folds to an icon rail), top bar with breadcrumbs and the account menu
 * above the content, content beside them. The three blocks are the real ones; the classes below only strip the card look
 * each wears on its own (radius, shadow, outer padding) so they read as one piece.
 */
export default function AppShellFrame() {
  return (
    <div
      className={[
        'grid w-full max-w-kh-page grid-cols-[auto_minmax(0,1fr)] overflow-hidden rounded-kh-xl border border-kh-line bg-kh-canvas',
        '[&_section]:py-0 [&_section>div]:max-w-none [&_section>div]:px-0',
        '[&_aside]:h-full [&_aside]:min-h-[34rem] [&_aside]:rounded-none [&_aside]:border-0 [&_aside]:border-r [&_aside]:shadow-none',
        '[&_header]:rounded-none [&_header]:border-0 [&_header]:border-b [&_header]:px-6 [&_header]:shadow-none',
      ].join(' ')}
    >
      <AppShellSidebar props={{ ...sidebarSpec.defaults, collapsed: false }} />
      <div className="flex min-w-0 flex-col">
        <AppShellTopbar props={topbarSpec.defaults} />
        <main className="min-w-0 flex-1 px-6 py-4 [&_section]:py-4">
          <AppDashboardStats props={{ ...statsSpec.defaults, eyebrow: '', description: '', title: 'Bookings overview' }} />
        </main>
      </div>
    </div>
  );
}
```

## Install

- **CLI**

  ```
  npx shadcn add @klarhimmel/app-shell-sidebar @klarhimmel/app-shell-topbar @klarhimmel/app-dashboard-stats
  ```

Uses

- Tooltip
- Menu
- Avatar

- **States**: Expanded and rail, with the account menu closed and open. Local state only. New project? Set it up once: /get-started/installation.
