---
title: "Docs Sidebar N.01"
description: "The sidebar of a team wiki: Ask the wiki, favorites, teamspaces as a page tree, synced sources, private pages, trash, and invites. It folds to a rail."
url: https://gelatinui.com/blocks/docs-sidebar-01
markdown_url: https://gelatinui.com/blocks/docs-sidebar-01.md
access: pro
install: "npx shadcn@latest add @gelatin-ui-pro/docs-sidebar-01"
version: "2026-11-16"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Docs Sidebar N.01

> The sidebar of a team wiki: Ask the wiki, favorites, teamspaces as a page tree, synced sources, private pages, trash, and invites. It folds to a rail.

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

## When to use it

Best for: The nav of a team wiki: Ask the wiki, favorites, teamspace page trees, synced sources, and private pages.

- Use it as the frame of a wiki, docs, or notes app with teams.
- Pass your words through `content`. Start from `DOCS_SIDEBAR_01_DEFAULT_CONTENT` and change the fields you need.
- Pass your logo in `content.brand.mark`, and the logo of each synced tool in its `mark`. With none, a letter tile and plain icons show.

## When not to use it

- For a notes app with one space and an AI usage pill, use [Notes Sidebar N.01](https://gelatinui.com/blocks/notes-sidebar-01.md).
- For the parts with no ready contents, use [Sidebar](https://gelatinui.com/components/sidebar.md).

## Notes for agents

- ⌘B (Ctrl+B elsewhere), the rail, or the close button folds it to a 48px icon rail. The logo button opens it again.
- In the icon rail the teamspaces, synced, and private groups hide. Search, the top rows, the favorites, and the face of the signed-in person stay.
- A teamspace chevron folds its pages, and the row opens the teamspace. A page with `pages` is a folder: a press on its row folds its child pages.
- ⌘J (Ctrl+J elsewhere) presses the Ask the wiki row. Pass `onClick` to open your answer panel.
- A cookie keeps the state. Pass `cookie={false}` in a demo.
- `DocsSidebar01Page` is only the page bar, with a path and actions that do nothing: put your editor under it.
- With children, the block ignores `content`.

## Anatomy

```text
DocsSidebar01
├─ DocsSidebar01Ask (0..n)
├─ DocsSidebar01BranchPages (0..n)
├─ DocsSidebar01BranchToggle (0..n)
├─ DocsSidebar01Branch (0..n)
├─ DocsSidebar01Brand (0..n)
├─ DocsSidebar01Default (0..n)
├─ DocsSidebar01FolderTrigger (0..n)
├─ DocsSidebar01Folder (0..n)
├─ DocsSidebar01Invite (0..n)
├─ DocsSidebar01LinkRow (0..n)
├─ DocsSidebar01PageItem (0..n)
├─ DocsSidebar01Page (0..n)
├─ DocsSidebar01RailPerson (0..n)
├─ DocsSidebar01TeamTile (0..n)
├─ DocsSidebar01Teamspace (0..n)
└─ DocsSidebar01Panel (0..n)
   ├─ DocsSidebar01SubRow (0..n)
   └─ DocsSidebar01Row (0..n)
```

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| DocsSidebar01 | `docs-sidebar-01` |  |  |  |
| DocsSidebar01Ask | `docs-sidebar-01-ask` |  |  |  |
| DocsSidebar01BranchPages | `docs-sidebar-01-branch-pages` |  |  |  |
| DocsSidebar01BranchToggle | `docs-sidebar-01-branch-toggle` |  |  |  |
| DocsSidebar01Branch | `docs-sidebar-01-branch` |  |  |  |
| DocsSidebar01Brand | `docs-sidebar-01-brand` | `data-collapsible` |  |  |
| DocsSidebar01Default | `docs-sidebar-01-panel` | `data-collapsible` |  |  |
| DocsSidebar01FolderTrigger | `docs-sidebar-01-folder-trigger` |  |  |  |
| DocsSidebar01Folder | `docs-sidebar-01-folder` |  |  |  |
| DocsSidebar01Invite | `docs-sidebar-01-invite` | `data-collapsible` |  |  |
| DocsSidebar01LinkRow | `docs-sidebar-01-link-row` |  |  |  |
| DocsSidebar01PageItem | `docs-sidebar-01-page-item` |  |  |  |
| DocsSidebar01Page | `docs-sidebar-01-page` |  |  |  |
| DocsSidebar01RailPerson | `docs-sidebar-01-rail-person` | `data-collapsible` |  |  |
| DocsSidebar01SubRow | `docs-sidebar-01-sub-row` |  |  |  |
| DocsSidebar01TeamTile | `docs-sidebar-01-team-tile` | `data-tone` | `--radius` | `status-colors` |
| DocsSidebar01Teamspace | `docs-sidebar-01-teamspace` |  |  |  |
| DocsSidebar01Panel | `docs-sidebar-01-panel` |  |  |  |
| DocsSidebar01Row | `docs-sidebar-01-row` |  |  |  |

## Usage

Render it with no props for the ready panel and the page bar.

```tsx title="wiki-frame.tsx"
import { DocsSidebar01 } from "@/components/blocks/pro/docs-sidebar-01/docs-sidebar-01";

export function WikiFrame() {
  return <DocsSidebar01 />;
}
```

## 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/docs-sidebar-01
```

It adds 57 registry items: 74 files, 10410 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)
- [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

- [Sidebar](https://gelatinui.com/components/sidebar.md)
- [Workspace Sidebar N.01](https://gelatinui.com/blocks/workspace-sidebar-01.md)
- [Notes Sidebar N.01](https://gelatinui.com/blocks/notes-sidebar-01.md)
- [Collapsible](https://gelatinui.com/components/collapsible.md)

## Keyboard

| Keys | Action |
| --- | --- |
| ⌘B, Ctrl+B | Folds the panel to the icon rail, or opens it. |
| ⌘J, Ctrl+J | Presses the Ask the wiki row. |
| Tab | Moves through the rows, the chevrons, the add buttons, and the invite row. |
| Enter, Space | Opens a page, or folds the pages on a chevron or a folder. |
| Esc | Closes the Drawer. |

## Accessibility

The rows show a tooltip with the name on the icon rail.

Each chevron and folder row tells its state with `aria-expanded`.

The current page row has `aria-current="page"`.

## Motion

| Part | Motion |
| --- | --- |
| Rail | sheet · the panel width changes |
| Pages | panel · the pages grow and fold |
