---
title: "Settings Sidebar N.01"
description: "The sidebar of a settings area: a back row, the workspace, a search field, account and workspace groups, and a trial card. It folds to an icon rail."
url: https://gelatinui.com/blocks/settings-sidebar-01
markdown_url: https://gelatinui.com/blocks/settings-sidebar-01.md
access: free
install: "npx shadcn@latest add @gelatin-ui/settings-sidebar-01"
registry_item: https://gelatinui.com/r/settings-sidebar-01.json
version: "2026-11-16"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Settings Sidebar N.01

> The sidebar of a settings area: a back row, the workspace, a search field, account and workspace groups, and a trial card. It folds to an icon rail.

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

## When to use it

Best for: The nav of the settings pages of an app, with a search, two groups, and a trial card.

- Use it as the frame of the settings pages of an app.
- Pass your words through `content`. Start from `SETTINGS_SIDEBAR_01_DEFAULT_CONTENT`, and change the fields you need.
- Pass `onSearch` or `onValueChange` to `SettingsSidebar01Search` to search your settings.

## When not to use it

- For the main nav of an app, use the [Workspace Sidebar N.01](https://gelatinui.com/blocks/workspace-sidebar-01.md).
- For the parts with no ready contents, use the [Sidebar](https://gelatinui.com/components/sidebar.md).

## Notes for agents

- ⌘B (Ctrl+B elsewhere), the rail, or the Collapse sidebar row folds it to a 48px icon rail.
- `/` puts the focus in the search field. Connect the field to the search of your app.
- A row can end with a status (`kind: "status"`), faces (`kind: "people"`), or app marks (`kind: "apps"`).
- Installed content shows initials and letters. Pass your logo in `workspace.logo` and app logos in `apps[].logo`.
- A cookie keeps the open state. Pass `cookie={false}` in a demo.
- `SettingsSidebar01Page` is only the top bar of the page: the path and three actions. Put your page under it.
- To change the order or drop a part, pass the parts as children. With children, the block ignores `content`.

## Anatomy

```text
SettingsSidebar01
├─ SettingsSidebar01Account (0..n)
├─ SettingsSidebar01Apps (0..n)
├─ SettingsSidebar01Back (0..n)
├─ SettingsSidebar01Collapse (0..n)
├─ SettingsSidebar01Contents (0..n)
├─ SettingsSidebar01Default (0..n)
├─ SettingsSidebar01Face (0..n)
├─ SettingsSidebar01Groups (0..n)
├─ SettingsSidebar01LinkRow (0..n)
├─ SettingsSidebar01Page (0..n)
├─ SettingsSidebar01Panel (0..n)
│  └─ SettingsSidebar01Row (0..n)
├─ SettingsSidebar01People (0..n)
├─ SettingsSidebar01Plan (0..n)
├─ SettingsSidebar01RowEnd (0..n)
├─ SettingsSidebar01Search (0..n)
├─ SettingsSidebar01Status (0..n)
├─ SettingsSidebar01Trial (0..n)
├─ SettingsSidebar01Workspace (0..n)
├─ SettingsSidebar01AccountMenu (0..n)
├─ SettingsSidebar01MenuPerson (0..n)
├─ SettingsSidebar01MenuRow (0..n)
└─ SettingsSidebar01ThemeMenu (0..n)
```

## API reference

### SettingsSidebar01

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `defaultOpen` | `boolean` |  | The open state on the first render, uncontrolled. Default `true`. Read the cookie on the server to keep it. |
| `open` | `boolean` |  | The open state, controlled. |
| `onOpenChange` | `function` |  |  |
| `keyboardShortcut` | `string \| false` |  | The key that toggles the Sidebar with Ctrl (⌘ on a Mac). Default `"b"`, as in shadcn. Pass `false` to turn the shortcut off, for example in an app with a text editor where ⌘B is bold. |
| `contained` | `boolean` |  | The panel sits in the provider box (a block in a page), not on the screen edge. Default `false`. |
| `cookie` | `string \| false` |  | The name of the cookie that keeps the open state, or `false` for none. Default `"sidebar_state"`. |
| `openMobile` | `boolean` |  | The phone Drawer state, controlled. |
| `defaultOpenMobile` | `boolean` |  | The phone Drawer state on the first render, uncontrolled. Default `false`. |
| `onOpenMobileChange` | `function` |  |  |
| `content` | `SettingsSidebar01DefaultContent` |  | The words of the ready composition. It has no use when you pass children. |

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| SettingsSidebar01 | `settings-sidebar-01` |  |  |  |
| SettingsSidebar01Account | `settings-sidebar-01-account` | `data-collapsible` |  |  |
| SettingsSidebar01Apps | `settings-sidebar-01-apps` |  |  |  |
| SettingsSidebar01Back | `settings-sidebar-01-back` |  |  |  |
| SettingsSidebar01Collapse | `settings-sidebar-01-collapse` | `data-collapsible` |  |  |
| SettingsSidebar01Contents | `settings-sidebar-01-contents` | `data-collapsible` |  |  |
| SettingsSidebar01Default | `settings-sidebar-01-panel` |  |  |  |
| SettingsSidebar01Face | `settings-sidebar-01-face` |  |  |  |
| SettingsSidebar01Groups | `settings-sidebar-01-groups` |  |  |  |
| SettingsSidebar01LinkRow | `settings-sidebar-01-link-row` |  |  |  |
| SettingsSidebar01Page | `settings-sidebar-01-page` |  |  |  |
| SettingsSidebar01Panel | `settings-sidebar-01-panel` |  |  |  |
| SettingsSidebar01People | `settings-sidebar-01-people` |  |  |  |
| SettingsSidebar01Plan | `settings-sidebar-01-plan` | `data-collapsible` | `--radius` |  |
| SettingsSidebar01RowEnd | `settings-sidebar-01-row-end` | `data-collapsible` |  |  |
| SettingsSidebar01Row | `settings-sidebar-01-row` |  |  |  |
| SettingsSidebar01Search | `settings-sidebar-01-search` | `data-collapsible` |  |  |
| SettingsSidebar01Status | `settings-sidebar-01-status` |  |  |  |
| SettingsSidebar01Trial | `settings-sidebar-01-trial` |  |  |  |
| SettingsSidebar01Workspace | `settings-sidebar-01-workspace` | `data-collapsible` |  |  |
| SettingsSidebar01AccountMenu | `settings-sidebar-01-account-menu` |  |  |  |
| SettingsSidebar01MenuPerson | `settings-sidebar-01-menu-person` |  |  |  |
| SettingsSidebar01MenuRow | `settings-sidebar-01-menu-row` |  |  |  |
| SettingsSidebar01ThemeMenu | `settings-sidebar-01-theme-menu` |  |  |  |

## Usage

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

```tsx title="settings-frame.tsx"
import { SettingsSidebar01 } from "@/components/blocks/settings-sidebar-01/settings-sidebar-01";

export function SettingsFrame() {
  return <SettingsSidebar01 />;
}
```

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

It adds 64 registry items: 84 files, 12284 lines, and the npm packages `@base-ui/react`, `@dicebear/core`, `@dicebear/styles`, `@mantine/hooks`, `@phosphor-icons/react`, `@tanstack/react-hotkeys`, `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)
- [Meter](https://gelatinui.com/components/meter.md)
- [Search Field](https://gelatinui.com/components/search-field.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)
- [Search Field](https://gelatinui.com/components/search-field.md)
- [Meter](https://gelatinui.com/components/meter.md)

## Keyboard

| Keys | Action |
| --- | --- |
| / | Puts the focus in the settings search. |
| Esc | Clears the search field, then leaves it. Closes the Drawer. |
| ⌘B, Ctrl+B | Folds or opens the panel. |
| Tab | Moves through the back row, the search, the pages, the plan button, and the collapse row. |

## Accessibility

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

On the icon rail, each row shows its name in a tooltip.

The trial meter says the days left as its value text.

## Motion

| Part | Motion |
| --- | --- |
| Rail | sheet · the panel width changes |
