# Floating Sidebar Admin block

> Floating icon-collapsible sidebar shell with command-K search, nested nav, and workspace switcher

App shell with a floating collapsible-to-icon Sidebar, command-K search Dialog, nested Platform nav with a live status pulse, workspace switcher Dropdown, and Breadcrumb header. Uses Sidebar, Breadcrumb, Avatar, Dialog, Kbd. Dashboard, admin panel.

- Type: Pro block
- Category: [App Shell](https://web.dev.reui.io/blocks/application/app-shell.md)
- Page: https://web.dev.reui.io/blocks/application/app-shell/app-shell-2
- Docs (Base UI): https://ui.shadcn.com/docs/components/base/sidebar.md
- Docs (Radix UI): https://ui.shadcn.com/docs/components/radix/sidebar.md
- MCP: `get_block("app-shell-2")`
- Built with: Avatar, Breadcrumb, Button, Dialog, Dropdown Menu, Input, Item, Kbd, Separator, Sidebar
- Installs with a ReUI Pro or Ultimate license; setup: https://web.dev.reui.io/docs/license-setup

## Best for

A floating sidebar with a Cmd+K search button up top and the workspace switcher at its foot, beside a breadcrumb of avatar crumbs

## Agent notes

- Replace `NAV_MAIN`, `NAV_SECONDARY` and `WORKSPACES` in data.tsx, and the Workspace and @shadcn crumbs hardcoded in `AppHeader`
- Any `badge` on a `NAV_MAIN` item draws a pulsing green dot in `LeafNavItem`; the value itself, such as Revenue's 14, never renders
- The `SearchForm` dialog holds a lone `Input` with no results or handler, and New Organization in `NavWorkspace` has no `onClick`

## When not to use

- Pinned resources under the main nav, each with its own row actions menu: use [Icon Rail Dashboard](https://web.dev.reui.io/blocks/application/app-shell/app-shell-1.md) (`get_block("app-shell-1")`)
- Account settings where a side menu swaps billing, team and access forms: use the [Profile blocks](https://web.dev.reui.io/blocks/application/profile.md)

## Install

```bash
npx shadcn@latest add @reui/app-shell-2
```

## About App Shell blocks

### When to use

- The outer layout of a multi page product: the navigation around its content area
- Dashboards and admin consoles that switch between workspaces or projects

### When not to use

- One overview page of stats, charts and tables inside your own layout: use the [Dashboard blocks](https://web.dev.reui.io/blocks/application/dashboard.md)
- A top bar on its own, above a page layout you already have: use the [Navbar blocks](https://web.dev.reui.io/blocks/application/navbar.md)

### Agent notes

- Shells that switch themes call `useTheme` from next-themes, so the app must mount the next-themes ThemeProvider

Every ReUI item has a twin like this one; the index is https://web.dev.reui.io/llms.txt. Agents with the ReUI MCP (https://web.dev.reui.io/docs/mcp) get the same guidance from the getters named above.
