---
title: "Workspace Sidebar N.01"
description: "The home panel of a team work app: inbox counts, favorites, teams that open into views, connected tools, and a cycle card. It folds to an icon rail."
url: https://gelatinui.com/blocks/workspace-sidebar-01
markdown_url: https://gelatinui.com/blocks/workspace-sidebar-01.md
access: pro
install: "npx shadcn@latest add @gelatin-ui-pro/workspace-sidebar-01"
version: "2026-11-16"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Workspace Sidebar N.01

> The home panel of a team work app: inbox counts, favorites, teams that open into views, connected tools, and a cycle card. It folds to an icon rail.

Page: https://gelatinui.com/blocks/workspace-sidebar-01

## When to use it

Best for: The home nav of a team work app: inbox, favorites, teams with their views, connected tools, and the current cycle.

- Use it as the frame of an issue tracker, a project tool, or a team planner.
- Pass your words through `content`. Start from `WORKSPACE_SIDEBAR_01_DEFAULT_CONTENT` and change the fields you need.
- Pass your own logos through `content` (the workspace `logo` and the `logo` of each tool).

## When not to use it

- For a plain app nav with a workspace switcher and an account menu, use a [Sidebar](https://gelatinui.com/components/sidebar.md).
- For the parts with no ready contents, use a [Sidebar](https://gelatinui.com/components/sidebar.md).

## Notes for agents

- ⌘B (Ctrl+B elsewhere), the rail strip, or the trigger folds it to a 48px icon rail.
- ⌘K presses the search row and C presses the compose row. C does nothing while a field has focus.
- A cookie keeps the state. Pass `cookie={false}` in a demo.
- Under 768px the panel is a Drawer; the page bar shows the trigger.
- `WorkspaceSidebar01Page` is only the page bar: a path and three action buttons. Replace it with your page.
- The `rail` rows and the `person` face show only on the icon rail.
- To change the order or drop a part, pass the parts as children. With children, the block ignores `content`.

## Anatomy

```text
WorkspaceSidebar01
├─ WorkspaceSidebar01Compose (0..n)
├─ WorkspaceSidebar01Contents (0..n)
├─ WorkspaceSidebar01Cycle (0..n)
├─ WorkspaceSidebar01Default (0..n)
├─ WorkspaceSidebar01Faces (0..n)
├─ WorkspaceSidebar01Link (0..n)
├─ WorkspaceSidebar01Page (0..n)
├─ WorkspaceSidebar01Search (0..n)
├─ WorkspaceSidebar01Team (0..n)
├─ WorkspaceSidebar01Workspace (0..n)
├─ WorkspaceSidebar01WorkspaceTile (0..n)
├─ WorkspaceSidebar01MenuRow (0..n)
└─ WorkspaceSidebar01Panel (0..n)
   ├─ WorkspaceSidebar01View (0..n)
   └─ WorkspaceSidebar01Row (0..n)
```

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| WorkspaceSidebar01 | `workspace-sidebar-01` |  |  |  |
| WorkspaceSidebar01Compose | `workspace-sidebar-01-compose` | `data-collapsible` |  |  |
| WorkspaceSidebar01Contents | `workspace-sidebar-01-contents` | `data-collapsible` |  |  |
| WorkspaceSidebar01Cycle | `workspace-sidebar-01-cycle` | `data-collapsible` |  |  |
| WorkspaceSidebar01Default | `workspace-sidebar-01-panel` |  |  |  |
| WorkspaceSidebar01Faces | `workspace-sidebar-01-faces` |  |  |  |
| WorkspaceSidebar01Link | `workspace-sidebar-01-link` |  |  |  |
| WorkspaceSidebar01Page | `workspace-sidebar-01-page` |  |  |  |
| WorkspaceSidebar01Search | `workspace-sidebar-01-search` | `data-collapsible` |  |  |
| WorkspaceSidebar01Team | `workspace-sidebar-01-team` |  | `--radius` |  |
| WorkspaceSidebar01View | `workspace-sidebar-01-view` |  | `--sidebar-menu-badge-width` |  |
| WorkspaceSidebar01Workspace | `workspace-sidebar-01-workspace` |  |  |  |
| WorkspaceSidebar01WorkspaceTile | `workspace-sidebar-01-workspace-tile` |  | `--radius` |  |
| WorkspaceSidebar01MenuRow | `workspace-sidebar-01-menu-row` |  |  |  |
| WorkspaceSidebar01Panel | `workspace-sidebar-01-panel` |  |  |  |
| WorkspaceSidebar01Row | `workspace-sidebar-01-row` |  |  |  |

## Usage

Render it with no props for the ready block. Pass `content` to set the words.

```tsx title="workspace-sidebar.tsx"
import { WorkspaceSidebar01 } from "@/components/blocks/pro/workspace-sidebar-01/workspace-sidebar-01";

export function WorkspaceSidebarDemo() {
  return <WorkspaceSidebar01 />;
}
```

## Compose

Rules:

- Compose the parts (`compose-parts`): Build each item from its named parts as children, and pass your text and icons in as parts.
- Every state is designed (`every-state`): Give each view of data its loading, empty, and error states: a skeleton in the final layout, an `Empty` with an illustration and one next action, and an error that says what failed and how to retry.

## Add it

```bash
npx shadcn@latest add @gelatin-ui-pro/workspace-sidebar-01
```

It adds 66 registry items: 80 files, 12419 lines, and the npm packages `@base-ui/react`, `@dicebear/core`, `@dicebear/styles`, `@mantine/hooks`, `@phosphor-icons/react`, `clsx`, `motion`, `tailwind-merge`, `tailwind-variants`.

## Built on

- [Avatar](https://gelatinui.com/components/avatar.md)
- [Badge](https://gelatinui.com/components/badge.md)
- [Breadcrumb](https://gelatinui.com/components/breadcrumb.md)
- [Button](https://gelatinui.com/components/button.md)
- [Collapsible](https://gelatinui.com/components/collapsible.md)
- [Generated Avatar](https://gelatinui.com/components/generated-avatar.md)
- [Kbd](https://gelatinui.com/components/kbd.md)
- [Menu](https://gelatinui.com/components/menu.md)
- [Progress](https://gelatinui.com/components/progress.md)
- [Sidebar](https://gelatinui.com/components/sidebar.md)

## For AI agents

- Every item, one file: https://gelatinui.com/llms.txt
- MCP server (`search_items`, `get_item`, `get_install_plan`): https://gelatinui.com/mcp

## Related

- [Mail Sidebar N.01](https://gelatinui.com/blocks/mail-sidebar-01.md)
- [Sidebar](https://gelatinui.com/components/sidebar.md)
- [Collapsible](https://gelatinui.com/components/collapsible.md)

## Keyboard

| Keys | Action |
| --- | --- |
| ⌘B, Ctrl+B | Folds or opens the panel. |
| ⌘K, Ctrl+K | Presses the search row. |
| C | Presses the compose row, when no field has focus. |
| Enter, Space | Opens or closes a team. |
| Esc | Closes the Drawer. |

## Motion

| Part | Motion |
| --- | --- |
| Rail | sheet · the panel width changes |
| Team | panel · the views grow, and the chevron turns |
