---
title: "Music Sidebar N.01"
description: "The sidebar of a music or podcast app: the main places, a library with kind chips and cover art, friends who listen now, the next track, and a now playing card."
url: https://gelatinui.com/blocks/music-sidebar-01
markdown_url: https://gelatinui.com/blocks/music-sidebar-01.md
access: pro
install: "npx shadcn@latest add @gelatin-ui-pro/music-sidebar-01"
version: "2026-11-16"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Music Sidebar N.01

> The sidebar of a music or podcast app: the main places, a library with kind chips and cover art, friends who listen now, the next track, and a now playing card.

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

## When to use it

Best for: The nav of a music or podcast app: places, a library, friends, and the player in one panel.

- Use it as the frame of a music, podcast, or audiobook app.
- Pass your words, library, and track through `content`. Start from `MUSIC_SIDEBAR_01_DEFAULT_CONTENT`, and change the fields you need.

## When not to use it

- For the nav of an app with no media, 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. The rail shows the cover of the track that plays now; a press on it or on the library row opens the panel.
- The panel owns the current row: the places and the library rows share one raised chip.
- The controls own the play state, or follow `playing`. Wire `onPlayingChange`, `onPrevious`, and `onNext` to your player. The progress shows the `elapsed` and `length` you pass.
- With no `imageUrl`, a cover shows the first letter of its name.
- A cookie keeps the collapsed state. Pass `cookie={false}` in a demo.
- `MusicSidebar01Page` is only the header bar of a playlist page; its buttons do nothing. Replace it with your page.

## Anatomy

```text
MusicSidebar01
├─ MusicSidebar01Account (0..n)
├─ MusicSidebar01Brand (0..n)
├─ MusicSidebar01Controls (0..n)
├─ MusicSidebar01Cover (0..n)
├─ MusicSidebar01Default (0..n)
├─ MusicSidebar01Device (0..n)
├─ MusicSidebar01Friend (0..n)
├─ MusicSidebar01LibraryFilter (0..n)
├─ MusicSidebar01LibraryList (0..n)
├─ MusicSidebar01LibraryRow (0..n)
├─ MusicSidebar01NowPlaying (0..n)
├─ MusicSidebar01Page (0..n)
├─ MusicSidebar01Panel (0..n)
│  ├─ MusicSidebar01RailLink (0..n)
│  └─ MusicSidebar01Row (0..n)
├─ MusicSidebar01Progress (0..n)
├─ MusicSidebar01RailCover (0..n)
├─ MusicSidebar01TrackArtist (0..n)
├─ MusicSidebar01TrackText (0..n)
├─ MusicSidebar01TrackTitle (0..n)
├─ MusicSidebar01Track (0..n)
├─ MusicSidebar01UpNext (0..n)
├─ MusicSidebar01AccountMenu (0..n)
├─ MusicSidebar01MenuPerson (0..n)
├─ MusicSidebar01MenuRow (0..n)
└─ MusicSidebar01ThemeMenu (0..n)
```

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| MusicSidebar01 | `music-sidebar-01` |  |  |  |
| MusicSidebar01Account | `music-sidebar-01-account` |  |  |  |
| MusicSidebar01Brand | `music-sidebar-01-brand` | `data-collapsible` |  |  |
| MusicSidebar01Controls | `music-sidebar-01-controls` |  |  |  |
| MusicSidebar01Cover | `music-sidebar-01-cover` |  |  |  |
| MusicSidebar01Default | `music-sidebar-01-panel` | `data-collapsible` |  |  |
| MusicSidebar01Device | `music-sidebar-01-device` |  |  | `status-colors` |
| MusicSidebar01Friend | `music-sidebar-01-friend` |  |  |  |
| MusicSidebar01LibraryFilter | `music-sidebar-01-library-filter` |  |  |  |
| MusicSidebar01LibraryList | `music-sidebar-01-library-list` |  |  |  |
| MusicSidebar01LibraryRow | `music-sidebar-01-library-row` |  |  | `status-colors` |
| MusicSidebar01NowPlaying | `music-sidebar-01-now-playing` | `data-collapsible` |  |  |
| MusicSidebar01Page | `music-sidebar-01-page` |  |  |  |
| MusicSidebar01Panel | `music-sidebar-01-panel` |  |  |  |
| MusicSidebar01Progress | `music-sidebar-01-progress` |  |  |  |
| MusicSidebar01RailCover | `music-sidebar-01-rail-cover` | `data-collapsible` |  |  |
| MusicSidebar01RailLink | `music-sidebar-01-rail-link` | `data-collapsible` |  |  |
| MusicSidebar01TrackArtist | `music-sidebar-01-track-artist` |  |  |  |
| MusicSidebar01TrackText | `music-sidebar-01-track-text` |  |  |  |
| MusicSidebar01TrackTitle | `music-sidebar-01-track-title` |  |  |  |
| MusicSidebar01Track | `music-sidebar-01-track` | `data-pressed` |  |  |
| MusicSidebar01UpNext | `music-sidebar-01-up-next` | `data-collapsible` |  |  |
| MusicSidebar01AccountMenu | `music-sidebar-01-account-menu` |  |  |  |
| MusicSidebar01MenuPerson | `music-sidebar-01-menu-person` |  |  |  |
| MusicSidebar01MenuRow | `music-sidebar-01-menu-row` |  |  |  |
| MusicSidebar01Row | `music-sidebar-01-row` |  |  |  |
| MusicSidebar01ThemeMenu | `music-sidebar-01-theme-menu` |  |  |  |

## Usage

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

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

export function MusicFrame() {
  return <MusicSidebar01 />;
}
```

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

It adds 81 registry items: 104 files, 15756 lines, and the npm packages `@base-ui/react`, `@dicebear/core`, `@dicebear/styles`, `@internationalized/date`, `@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)
- [Duration](https://gelatinui.com/components/duration.md)
- [Generated Avatar](https://gelatinui.com/components/generated-avatar.md)
- [Menu](https://gelatinui.com/components/menu.md)
- [Progress](https://gelatinui.com/components/progress.md)
- [Sidebar](https://gelatinui.com/components/sidebar.md)
- [Toggle](https://gelatinui.com/components/toggle.md)
- [Toggle Group](https://gelatinui.com/components/toggle-group.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)
- [Toggle Group](https://gelatinui.com/components/toggle-group.md)
- [Progress](https://gelatinui.com/components/progress.md)

## Keyboard

| Keys | Action |
| --- | --- |
| ⌘B, Ctrl+B | Collapses or opens the panel. |
| Tab | Moves through search, collapse, the rows, the kind chips, and the player controls. |
| Arrow keys | Move between the kind chips. |
| Esc | Closes the Drawer. |

## Accessibility

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

The like, shuffle, and repeat buttons are toggles with their pressed state.

The play button says Play or Pause by the state.

The progress bar is named and has its value.

## Motion

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