---
title: "Drive Sidebar N.01"
description: "The sidebar of a team drive: New, the main places, a folder tree, shared drives, an upload queue, and storage split by file type."
url: https://gelatinui.com/blocks/drive-sidebar-01
markdown_url: https://gelatinui.com/blocks/drive-sidebar-01.md
access: pro
install: "npx shadcn@latest add @gelatin-ui-pro/drive-sidebar-01"
version: "2026-11-18"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Drive Sidebar N.01

> The sidebar of a team drive: New, the main places, a folder tree, shared drives, an upload queue, and storage split by file type.

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

## When to use it

Best for: The nav of a file app: places, a folder tree, shared drives, uploads, and storage in one panel.

- Use it as the frame of a drive, a file manager, or a media library.
- Pass your words, folders, and uploads through `content`. Start from `DRIVE_SIDEBAR_01_DEFAULT_CONTENT`, and change the fields you need.

## When not to use it

- For the nav of an app with no files, 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, or the collapse button makes it a 48px icon rail. ⌘U (Ctrl+U) presses New: pass its `onClick`.
- The panel owns the current row: places, folders, sub folders, and drives share one raised chip.
- A folder row opens its page; the chevron at its end shows and hides its children.
- The upload card reads the files you pass: a file sends with its percent or is in with a check. With no files it renders nothing.
- The storage card is a `Meter` of the used space against the plan. The bar and the legend split it by file type.
- A cookie keeps the collapsed state. Pass `cookie={false}` in a demo.
- `DriveSidebar01Page` is only the header bar of a folder page; its buttons do nothing. Replace it with your page.

## Anatomy

```text
DriveSidebar01
├─ DriveSidebar01Account (0..n)
├─ DriveSidebar01Contents (0..n)
├─ DriveSidebar01Default (0..n)
├─ DriveSidebar01DriveTile (0..n)
├─ DriveSidebar01FolderItem (0..n)
├─ DriveSidebar01Folder (0..n)
├─ DriveSidebar01Members (0..n)
├─ DriveSidebar01New (0..n)
├─ DriveSidebar01Page (0..n)
├─ DriveSidebar01Panel (0..n)
│  ├─ DriveSidebar01SubRow (0..n)
│  └─ DriveSidebar01Row (0..n)
├─ DriveSidebar01Storage (0..n)
│  ├─ DriveSidebar01StorageBar (0..n)
│  ├─ DriveSidebar01StorageHeader (0..n)
│  └─ DriveSidebar01StorageLegend (0..n)
├─ DriveSidebar01Switcher (0..n)
├─ DriveSidebar01UploadRow (0..n)
├─ DriveSidebar01UploadsHeader (0..n)
├─ DriveSidebar01UploadsTime (0..n)
├─ DriveSidebar01Uploads (0..n)
│  ├─ DriveSidebar01UploadsList (0..n)
│  ├─ DriveSidebar01UploadsProgress (0..n)
│  └─ DriveSidebar01UploadsTitle (0..n)
├─ DriveSidebar01WorkspaceTile (0..n)
├─ DriveSidebar01AccountMenu (0..n)
├─ DriveSidebar01MenuPerson (0..n)
├─ DriveSidebar01MenuRow (0..n)
└─ DriveSidebar01ThemeMenu (0..n)
```

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| DriveSidebar01 | `drive-sidebar-01` |  |  |  |
| DriveSidebar01Account | `drive-sidebar-01-account` |  |  |  |
| DriveSidebar01Contents | `drive-sidebar-01-contents` | `data-collapsible` |  |  |
| DriveSidebar01Default | `drive-sidebar-01-panel` |  |  |  |
| DriveSidebar01DriveTile | `drive-sidebar-01-drive-tile` |  | `--radius` |  |
| DriveSidebar01FolderItem | `drive-sidebar-01-folder-item` |  |  |  |
| DriveSidebar01Folder | `drive-sidebar-01-folder` |  |  |  |
| DriveSidebar01Members | `drive-sidebar-01-members` |  |  |  |
| DriveSidebar01New | `drive-sidebar-01-new` | `data-collapsible` |  |  |
| DriveSidebar01Page | `drive-sidebar-01-page` |  |  |  |
| DriveSidebar01Panel | `drive-sidebar-01-panel` |  |  |  |
| DriveSidebar01StorageBar | `drive-sidebar-01-storage-bar` |  |  |  |
| DriveSidebar01StorageHeader | `drive-sidebar-01-storage-header` |  |  | `status-colors` |
| DriveSidebar01StorageLegend | `drive-sidebar-01-storage-legend` |  |  |  |
| DriveSidebar01Storage | `drive-sidebar-01-storage` | `data-collapsible` |  |  |
| DriveSidebar01SubRow | `drive-sidebar-01-sub-row` |  |  |  |
| DriveSidebar01Switcher | `drive-sidebar-01-switcher` |  |  |  |
| DriveSidebar01UploadRow | `drive-sidebar-01-upload-row` |  |  | `status-colors` |
| DriveSidebar01UploadsHeader | `drive-sidebar-01-uploads-header` |  |  |  |
| DriveSidebar01UploadsList | `drive-sidebar-01-uploads-list` |  |  |  |
| DriveSidebar01UploadsProgress | `drive-sidebar-01-uploads-progress` |  |  |  |
| DriveSidebar01UploadsTime | `drive-sidebar-01-uploads-time` |  |  |  |
| DriveSidebar01UploadsTitle | `drive-sidebar-01-uploads-title` |  |  |  |
| DriveSidebar01Uploads | `drive-sidebar-01-uploads` | `data-collapsible` |  |  |
| DriveSidebar01WorkspaceTile | `drive-sidebar-01-workspace-tile` |  |  |  |
| DriveSidebar01AccountMenu | `drive-sidebar-01-account-menu` |  |  |  |
| DriveSidebar01MenuPerson | `drive-sidebar-01-menu-person` |  |  |  |
| DriveSidebar01MenuRow | `drive-sidebar-01-menu-row` |  |  |  |
| DriveSidebar01Row | `drive-sidebar-01-row` |  |  |  |
| DriveSidebar01ThemeMenu | `drive-sidebar-01-theme-menu` |  |  |  |

## Usage

Render it with no props for the ready panel and the header bar of a folder page.

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

export function DriveFrame() {
  return <DriveSidebar01 />;
}
```

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

It adds 75 registry items: 102 files, 15222 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)
- [Dot](https://gelatinui.com/components/dot.md)
- [File Icon](https://gelatinui.com/components/file-icon.md)
- [Generated Avatar](https://gelatinui.com/components/generated-avatar.md)
- [Kbd](https://gelatinui.com/components/kbd.md)
- [Menu](https://gelatinui.com/components/menu.md)
- [Meter](https://gelatinui.com/components/meter.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

- [Workspace Sidebar N.01](https://gelatinui.com/blocks/workspace-sidebar-01.md)
- [Sidebar](https://gelatinui.com/components/sidebar.md)
- [File Icon](https://gelatinui.com/components/file-icon.md)
- [Meter](https://gelatinui.com/components/meter.md)

## Keyboard

| Keys | Action |
| --- | --- |
| ⌘B, Ctrl+B | Collapses or opens the panel. |
| ⌘U, Ctrl+U | Presses New. |
| Tab | Moves through the workspace, search, collapse, New, the rows, New folder, and the folder chevrons. |
| Esc | Closes a menu or the Drawer. |

## Accessibility

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

Each folder chevron says which folder it shows or hides.

The storage card is a meter with its value in words.

## Motion

| Part | Motion |
| --- | --- |
| Rail | panel · the panel width changes |
| Folder | panel · the children grow in and out |
| Drawer | sheet · the panel under 768px |
