# View Toolbar Workspace block

> Mini icon-rail sidebar app shell with per-section secondary nav and a tabbed workspace toolbar

Three-region workspace shell: icon rail, a toggleable secondary nav that swaps per section, and a toolbar with List, Kanban, Calendar, Dashboard tabs plus Sort, View, Filter, Search. ReUI Badge, shadcn Sidebar, Tabs, DropdownMenu, Avatar.

- 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-14
- 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-14")`
- Built with: Avatar, Badge, Breadcrumb, Button, Card, Dialog, Dropdown Menu, Input, Item, Scroll Area, Sidebar, Tabs
- Installs with a ReUI Pro or Ultimate license; setup: https://web.dev.reui.io/docs/license-setup

## Best for

A view toolbar of List, Kanban, Calendar and Dashboard tabs with Sort, View and Filter toggles, beside a secondary nav that folds away

## Agent notes

- Every `SECONDARY_NAV` key points at the same `SOURCE_SECTIONS`, so the secondary nav never changes with the rail; give each `RAIL_NAV` id its own
- `WorkspaceContent` takes no `activeView`, so the List, Kanban, Calendar and Dashboard tabs all show the same dashed cards
- Sort, View, Filter and Search only toggle `activeAction`, and Reports, Add, `RAIL_FOOTER_ACTIONS` and the section plus buttons do nothing

## When not to use

- A secondary nav that really changes per rail section, each with its own footer card: use [Inventory Admin](https://web.dev.reui.io/blocks/application/app-shell/app-shell-8.md) (`get_block("app-shell-8")`)
- A rounded black icon rail whose second column opens on a workspace switcher: use [Dual Sidebar Dashboard](https://web.dev.reui.io/blocks/application/app-shell/app-shell-16.md) (`get_block("app-shell-16")`)

## Third-party libraries

- next-themes: [API reference](https://github.com/pacocoursey/next-themes#api), [docs](https://github.com/pacocoursey/next-themes)

## Install

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

## 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.
