---
title: "Chat Sidebar N.01"
description: "The sidebar of a team chat: quick views, channels where unread ones stand out, direct messages with presence, apps, a live huddle card, and your status."
url: https://gelatinui.com/blocks/chat-sidebar-01
markdown_url: https://gelatinui.com/blocks/chat-sidebar-01.md
access: pro
install: "npx shadcn@latest add @gelatin-ui-pro/chat-sidebar-01"
version: "2026-11-16"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Chat Sidebar N.01

> The sidebar of a team chat: quick views, channels where unread ones stand out, direct messages with presence, apps, a live huddle card, and your status.

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

## When to use it

Best for: The nav of a team chat: quick views, channels, direct messages with presence, apps, a huddle, and your status.

- Use it as the frame of a chat, community, or support inbox app.
- Pass your words through `content`. Start from `CHAT_SIDEBAR_01_DEFAULT_CONTENT`, and change the fields you need.
- Give each app row a `logo` with the mark of the app, and the workspace a `logo` with your logo.

## When not to use it

- For the nav of an app with workspaces and teams, 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

- Set `unread` on a row: `true` shows it in ink with its count or a dot, `false` mutes it. A `tone: "alert"` count is red.
- ⌘K (Ctrl+K elsewhere) presses the search row. Pass `onClick` to `ChatSidebar01Search` to open your search.
- ⌘B (Ctrl+B elsewhere), the rail, or the Collapse sidebar row collapses it to a 48px icon rail. Rows with `rail: true` and the open row stay there.
- A cookie keeps the state. Pass `cookie={false}` in a demo.
- Under 768px the panel is a left Drawer, and the page bar shows its button.
- `ChatSidebar01Page` is only the page bar: put your messages under it, or replace it.
- To change the order or drop a part, pass the parts as children. With children, the block ignores `content`.

## Anatomy

```text
ChatSidebar01
├─ ChatSidebar01Collapse (0..n)
├─ ChatSidebar01Contents (0..n)
├─ ChatSidebar01Default (0..n)
├─ ChatSidebar01Face (0..n)
├─ ChatSidebar01Huddle (0..n)
├─ ChatSidebar01Lead (0..n)
├─ ChatSidebar01Me (0..n)
├─ ChatSidebar01Page (0..n)
├─ ChatSidebar01Search (0..n)
├─ ChatSidebar01Switcher (0..n)
├─ ChatSidebar01WorkspaceTile (0..n)
├─ ChatSidebar01AccountMenu (0..n)
├─ ChatSidebar01MenuPerson (0..n)
├─ ChatSidebar01MenuRow (0..n)
├─ ChatSidebar01Panel (0..n)
│  ├─ ChatSidebar01Conversation (0..n)
│  └─ ChatSidebar01Row (0..n)
└─ ChatSidebar01ThemeMenu (0..n)
```

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| ChatSidebar01 | `chat-sidebar-01` |  |  |  |
| ChatSidebar01Collapse | `chat-sidebar-01-collapse` | `data-collapsible` |  |  |
| ChatSidebar01Contents | `chat-sidebar-01-contents` | `data-collapsible` |  |  |
| ChatSidebar01Conversation | `chat-sidebar-01-conversation` | `data-active`, `data-collapsible` |  |  |
| ChatSidebar01Default | `chat-sidebar-01-panel` |  |  |  |
| ChatSidebar01Face | `chat-sidebar-01-face` |  |  |  |
| ChatSidebar01Huddle | `chat-sidebar-01-huddle` | `data-collapsible` |  | `hit-area`, `status-colors` |
| ChatSidebar01Lead | `chat-sidebar-01-lead` |  |  |  |
| ChatSidebar01Me | `chat-sidebar-01-me` | `data-collapsible` |  |  |
| ChatSidebar01Page | `chat-sidebar-01-page` |  |  |  |
| ChatSidebar01Search | `chat-sidebar-01-search` | `data-collapsible` |  |  |
| ChatSidebar01Switcher | `chat-sidebar-01-switcher` |  |  |  |
| ChatSidebar01WorkspaceTile | `chat-sidebar-01-workspace-tile` |  |  |  |
| ChatSidebar01AccountMenu | `chat-sidebar-01-account-menu` |  |  |  |
| ChatSidebar01MenuPerson | `chat-sidebar-01-menu-person` |  |  |  |
| ChatSidebar01MenuRow | `chat-sidebar-01-menu-row` |  |  |  |
| ChatSidebar01Panel | `chat-sidebar-01-panel` |  |  |  |
| ChatSidebar01Row | `chat-sidebar-01-row` |  |  |  |
| ChatSidebar01ThemeMenu | `chat-sidebar-01-theme-menu` |  |  |  |

## Usage

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

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

export function ChatFrame() {
  return <ChatSidebar01 />;
}
```

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

It adds 54 registry items: 71 files, 11122 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)
- [Dot](https://gelatinui.com/components/dot.md)
- [Generated Avatar](https://gelatinui.com/components/generated-avatar.md)
- [Kbd](https://gelatinui.com/components/kbd.md)
- [Menu](https://gelatinui.com/components/menu.md)
- [Sidebar](https://gelatinui.com/components/sidebar.md)
- [Toggle](https://gelatinui.com/components/toggle.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)
- [Avatar](https://gelatinui.com/components/avatar.md)
- [Menu](https://gelatinui.com/components/menu.md)

## Keyboard

| Keys | Action |
| --- | --- |
| ⌘K, Ctrl+K | Presses the search row. |
| ⌘B, Ctrl+B | Collapses or opens the panel. |
| Tab | Moves through the switcher, search, the rows, the huddle, and the foot. |
| Esc | Closes the workspace menu or the Drawer. |

## Accessibility

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

The open row has `aria-current="page"`, and the mute button says if it is pressed.

## Motion

| Part | Motion |
| --- | --- |
| Rail | panel · the panel width changes |
| Drawer | sheet · the panel under 768px |
