---
title: "Photos Sidebar N.01"
description: "The sidebar of a photo library: the main places, people as faces, albums with covers and counts, utilities, and a storage card that is almost full."
url: https://gelatinui.com/blocks/photos-sidebar-01
markdown_url: https://gelatinui.com/blocks/photos-sidebar-01.md
access: pro
install: "npx shadcn@latest add @gelatin-ui-pro/photos-sidebar-01"
version: "2026-11-16"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Photos Sidebar N.01

> The sidebar of a photo library: the main places, people as faces, albums with covers and counts, utilities, and a storage card that is almost full.

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

## When to use it

Best for: The nav of a photo library: places, people, albums, utilities, and storage in one panel.

- Use it as the frame of a photo app, a media library, or an asset manager.
- Pass your words, people, albums, and storage through `content`. Start from `PHOTOS_SIDEBAR_01_DEFAULT_CONTENT`, and change the fields you need.

## When not to use it

- For the nav of a file app with folders and uploads, use a [Drive Sidebar N.01](https://gelatinui.com/blocks/drive-sidebar-01.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. The logo tile in the rail opens it again.
- The panel owns the current row: places, albums, and utilities share one raised chip. In the rail, the Albums row is current while an album is.
- A person with no `imageUrl` shows initials; an album with no `coverUrl` shows an image icon.
- The storage card is a `Meter` of the used bytes against the plan. The bar and its legend split it by kind; the amber duplicates are the part you can free at once.
- A cookie keeps the collapsed state. Pass `cookie={false}` in a demo.
- `PhotosSidebar01Page` is only the header bar of an album page; its buttons do nothing. Replace it with your page.

## Anatomy

```text
PhotosSidebar01
├─ PhotosSidebar01Account (0..n)
├─ PhotosSidebar01AlbumCover (0..n)
├─ PhotosSidebar01AlbumRow (0..n)
├─ PhotosSidebar01Brand (0..n)
├─ PhotosSidebar01Contents (0..n)
├─ PhotosSidebar01Default (0..n)
├─ PhotosSidebar01Face (0..n)
├─ PhotosSidebar01Page (0..n)
├─ PhotosSidebar01Panel (0..n)
│  ├─ PhotosSidebar01RailAlbums (0..n)
│  └─ PhotosSidebar01Row (0..n)
├─ PhotosSidebar01People (0..n)
├─ PhotosSidebar01PlaceItem (0..n)
├─ PhotosSidebar01RailBrand (0..n)
├─ PhotosSidebar01StorageBody (0..n)
├─ PhotosSidebar01Storage (0..n)
│  ├─ PhotosSidebar01StorageBar (0..n)
│  ├─ PhotosSidebar01StorageHeader (0..n)
│  └─ PhotosSidebar01StorageLegend (0..n)
├─ PhotosSidebar01AccountMenu (0..n)
├─ PhotosSidebar01MenuPerson (0..n)
├─ PhotosSidebar01MenuRow (0..n)
└─ PhotosSidebar01ThemeMenu (0..n)
```

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| PhotosSidebar01 | `photos-sidebar-01` |  |  |  |
| PhotosSidebar01Account | `photos-sidebar-01-account` | `data-collapsible` |  |  |
| PhotosSidebar01AlbumCover | `photos-sidebar-01-album-cover` |  |  |  |
| PhotosSidebar01AlbumRow | `photos-sidebar-01-album-row` |  |  |  |
| PhotosSidebar01Brand | `photos-sidebar-01-brand` | `data-collapsible` |  |  |
| PhotosSidebar01Contents | `photos-sidebar-01-contents` | `data-collapsible` |  |  |
| PhotosSidebar01Default | `photos-sidebar-01-panel` |  |  |  |
| PhotosSidebar01Face | `photos-sidebar-01-face` |  |  |  |
| PhotosSidebar01Page | `photos-sidebar-01-page` |  |  |  |
| PhotosSidebar01Panel | `photos-sidebar-01-panel` |  |  |  |
| PhotosSidebar01People | `photos-sidebar-01-people` |  |  |  |
| PhotosSidebar01PlaceItem | `photos-sidebar-01-place-item` |  |  |  |
| PhotosSidebar01RailAlbums | `photos-sidebar-01-rail-albums` | `data-collapsible` |  |  |
| PhotosSidebar01RailBrand | `photos-sidebar-01-rail-brand` | `data-collapsible` |  |  |
| PhotosSidebar01StorageBar | `photos-sidebar-01-storage-bar` |  |  |  |
| PhotosSidebar01StorageBody | `photos-sidebar-01-storage-body` |  |  |  |
| PhotosSidebar01StorageHeader | `photos-sidebar-01-storage-header` |  |  | `status-colors` |
| PhotosSidebar01StorageLegend | `photos-sidebar-01-storage-legend` |  |  |  |
| PhotosSidebar01Storage | `photos-sidebar-01-storage` | `data-collapsible` |  |  |
| PhotosSidebar01AccountMenu | `photos-sidebar-01-account-menu` |  |  |  |
| PhotosSidebar01MenuPerson | `photos-sidebar-01-menu-person` |  |  |  |
| PhotosSidebar01MenuRow | `photos-sidebar-01-menu-row` |  |  |  |
| PhotosSidebar01Row | `photos-sidebar-01-row` |  |  |  |
| PhotosSidebar01ThemeMenu | `photos-sidebar-01-theme-menu` |  |  |  |

## Usage

Render it with no props for the ready panel and the header bar of an album page.

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

export function PhotosFrame() {
  return <PhotosSidebar01 />;
}
```

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

It adds 61 registry items: 81 files, 12677 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)
- [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)
- [Menu](https://gelatinui.com/components/menu.md)
- [Meter](https://gelatinui.com/components/meter.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)
- [Drive Sidebar N.01](https://gelatinui.com/blocks/drive-sidebar-01.md)
- [Sidebar](https://gelatinui.com/components/sidebar.md)
- [Avatar](https://gelatinui.com/components/avatar.md)
- [Meter](https://gelatinui.com/components/meter.md)

## Keyboard

| Keys | Action |
| --- | --- |
| ⌘B, Ctrl+B | Collapses or opens the panel. |
| Tab | Moves through search, collapse, the rows, the faces, the group buttons, and Get more. |
| Esc | Closes the Drawer. |

## Accessibility

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

The new-activity dot has a name, so it is not only a color.

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

## Motion

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