---
title: "Notes Sidebar N.01"
description: "A floating sidebar for a notes app: search, Ask AI, inbox, favorites, a team space with nested pages, and the AI answers left. It folds to an icon rail."
url: https://gelatinui.com/blocks/notes-sidebar-01
markdown_url: https://gelatinui.com/blocks/notes-sidebar-01.md
access: pro
install: "npx shadcn@latest add @gelatin-ui-pro/notes-sidebar-01"
version: "2026-11-16"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Notes Sidebar N.01

> A floating sidebar for a notes app: search, Ask AI, inbox, favorites, a team space with nested pages, and the AI answers left. It folds to an icon rail.

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

## When to use it

Best for: The nav of a notes or wiki app: search, Ask AI, inbox, favorites, a page tree, private pages, and an AI usage pill.

- Use it as the frame of a notes, docs, or wiki app.
- Pass your words through `content`. Start from `NOTES_SIDEBAR_01_DEFAULT_CONTENT` and change the fields you need.
- Pass your logo in `content.brand.mark`. With none, a letter tile shows.

## When not to use it

- For a general app nav with a workspace switcher, use a [Sidebar](https://gelatinui.com/components/sidebar.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 page groups hide, and the Favorites and Pages rows stand for them. A press on one opens the panel.
- Each page with `pages` is a branch: its chevron folds the child pages, and the row opens the page. The branch owns its open state.
- A cookie keeps the state. Pass `cookie={false}` in a demo.
- `NotesSidebar01Page` 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
NotesSidebar01
├─ NotesSidebar01Account (0..n)
├─ NotesSidebar01BranchPages (0..n)
├─ NotesSidebar01BranchToggle (0..n)
├─ NotesSidebar01Branch (0..n)
├─ NotesSidebar01Brand (0..n)
├─ NotesSidebar01Default (0..n)
├─ NotesSidebar01LinkRow (0..n)
├─ NotesSidebar01PageItem (0..n)
├─ NotesSidebar01PageMark (0..n)
├─ NotesSidebar01PageRow (0..n)
├─ NotesSidebar01Page (0..n)
├─ NotesSidebar01Usage (0..n)
├─ NotesSidebar01AccountMenu (0..n)
├─ NotesSidebar01MenuPerson (0..n)
├─ NotesSidebar01MenuRow (0..n)
├─ NotesSidebar01Panel (0..n)
│  ├─ NotesSidebar01RailLink (0..n)
│  ├─ NotesSidebar01SubRow (0..n)
│  └─ NotesSidebar01Row (0..n)
├─ NotesSidebar01Search (0..n)
└─ NotesSidebar01ThemeMenu (0..n)
```

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| NotesSidebar01 | `notes-sidebar-01` |  |  |  |
| NotesSidebar01Account | `notes-sidebar-01-account` |  |  |  |
| NotesSidebar01BranchPages | `notes-sidebar-01-branch-pages` |  |  |  |
| NotesSidebar01BranchToggle | `notes-sidebar-01-branch-toggle` |  |  |  |
| NotesSidebar01Branch | `notes-sidebar-01-branch` |  |  |  |
| NotesSidebar01Brand | `notes-sidebar-01-brand` | `data-collapsible` |  |  |
| NotesSidebar01Default | `notes-sidebar-01-panel` |  |  |  |
| NotesSidebar01LinkRow | `notes-sidebar-01-link-row` |  |  |  |
| NotesSidebar01PageItem | `notes-sidebar-01-page-item` |  |  |  |
| NotesSidebar01PageMark | `notes-sidebar-01-page-mark` | `data-tone` | `--radius` | `status-colors` |
| NotesSidebar01PageRow | `notes-sidebar-01-page-row` |  |  |  |
| NotesSidebar01Page | `notes-sidebar-01-page` |  |  |  |
| NotesSidebar01RailLink | `notes-sidebar-01-rail-link` | `data-collapsible` |  |  |
| NotesSidebar01SubRow | `notes-sidebar-01-sub-row` |  |  |  |
| NotesSidebar01Usage | `notes-sidebar-01-usage` | `data-collapsible` |  |  |
| NotesSidebar01AccountMenu | `notes-sidebar-01-account-menu` |  |  |  |
| NotesSidebar01MenuPerson | `notes-sidebar-01-menu-person` |  |  |  |
| NotesSidebar01MenuRow | `notes-sidebar-01-menu-row` |  |  |  |
| NotesSidebar01Panel | `notes-sidebar-01-panel` |  |  |  |
| NotesSidebar01Row | `notes-sidebar-01-row` |  |  |  |
| NotesSidebar01Search | `notes-sidebar-01-search` |  |  |  |
| NotesSidebar01ThemeMenu | `notes-sidebar-01-theme-menu` |  |  |  |

## Usage

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

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

export function NotesFrame() {
  return <NotesSidebar01 />;
}
```

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

It adds 68 registry items: 87 files, 13383 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)
- [Circular Meter](https://gelatinui.com/components/circular-meter.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)
- [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)
- [Circular Meter](https://gelatinui.com/components/circular-meter.md)
- [Collapsible](https://gelatinui.com/components/collapsible.md)

## Keyboard

| Keys | Action |
| --- | --- |
| ⌘B, Ctrl+B | Folds the panel to the icon rail, or opens it. |
| ⌘K, Ctrl+K | Presses the Search row. |
| Tab | Moves through the rows, the chevrons, the usage pill, and the account row. |
| Enter, Space | Opens a page, or folds the child pages on a chevron. |
| Esc | Closes the account menu or the Drawer. |

## Accessibility

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

Each chevron has a name and tells its state with `aria-expanded`.

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

## Motion

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