---
title: "Campaigns Sidebar N.01"
description: "The sidebar of an email marketing app: new campaign, campaigns by state, live automations, audiences with growth, the next send, and monthly sends."
url: https://gelatinui.com/blocks/campaigns-sidebar-01
markdown_url: https://gelatinui.com/blocks/campaigns-sidebar-01.md
access: pro
install: "npx shadcn@latest add @gelatin-ui-pro/campaigns-sidebar-01"
version: "2026-11-16"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Campaigns Sidebar N.01

> The sidebar of an email marketing app: new campaign, campaigns by state, live automations, audiences with growth, the next send, and monthly sends.

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

## When to use it

Best for: The nav of an email marketing app: campaigns, automations, audiences, the next send, and the send quota in one panel.

- Use it as the frame of an email marketing, newsletter, or lifecycle messaging app.
- Pass your words, audiences, and numbers through `content`. Start from `CAMPAIGNS_SIDEBAR_01_DEFAULT_CONTENT`, and change the fields you need.

## When not to use it

- For the nav of an app with no campaigns, 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 with Home, the four main links, and the face.
- The panel owns the current row: the links, the campaign states, the audiences, and the next send share one raised chip.
- The Campaigns row opens its page; the chevron at its end shows and hides the states. In the icon rail it shows as current when a state is current.
- Each audience shows its change as a `CampaignsSidebar01Change`: pass the change as a ratio (`0.021` is +2.1%).
- The monthly sends card is a `Meter` drawn as a half ring of the sends against the plan.
- A cookie keeps the collapsed state. Pass `cookie={false}` in a demo.
- `CampaignsSidebar01Page` is only the header bar of a campaign page; its buttons do nothing. Replace it with your page.

## Anatomy

```text
CampaignsSidebar01
├─ CampaignsSidebar01Account (0..n)
├─ CampaignsSidebar01Audience (0..n)
├─ CampaignsSidebar01Brand (0..n)
├─ CampaignsSidebar01Contents (0..n)
├─ CampaignsSidebar01Default (0..n)
├─ CampaignsSidebar01NextSend (0..n)
├─ CampaignsSidebar01Page (0..n)
├─ CampaignsSidebar01Panel (0..n)
│  ├─ CampaignsSidebar01Branch (0..n)
│  ├─ CampaignsSidebar01SubRow (0..n)
│  └─ CampaignsSidebar01Row (0..n)
├─ CampaignsSidebar01Sends (0..n)
├─ CampaignsSidebar01AccountMenu (0..n)
├─ CampaignsSidebar01MenuPerson (0..n)
├─ CampaignsSidebar01MenuRow (0..n)
├─ CampaignsSidebar01ThemeMenu (0..n)
└─ CampaignsSidebar01Change (0..n)
```

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| CampaignsSidebar01 | `campaigns-sidebar-01` |  |  |  |
| CampaignsSidebar01Account | `campaigns-sidebar-01-account` |  |  |  |
| CampaignsSidebar01Audience | `campaigns-sidebar-01-audience` |  |  |  |
| CampaignsSidebar01Branch | `campaigns-sidebar-01-branch` |  |  |  |
| CampaignsSidebar01Brand | `campaigns-sidebar-01-brand` |  |  |  |
| CampaignsSidebar01Contents | `campaigns-sidebar-01-contents` | `data-collapsible` |  |  |
| CampaignsSidebar01Default | `campaigns-sidebar-01-panel` |  |  |  |
| CampaignsSidebar01NextSend | `campaigns-sidebar-01-next-send` |  |  | `status-colors` |
| CampaignsSidebar01Page | `campaigns-sidebar-01-page` |  |  |  |
| CampaignsSidebar01Panel | `campaigns-sidebar-01-panel` |  |  |  |
| CampaignsSidebar01Sends | `campaigns-sidebar-01-sends` | `data-collapsible` | `--chart-1` | `status-colors` |
| CampaignsSidebar01SubRow | `campaigns-sidebar-01-sub-row` |  |  |  |
| CampaignsSidebar01AccountMenu | `campaigns-sidebar-01-account-menu` |  |  |  |
| CampaignsSidebar01MenuPerson | `campaigns-sidebar-01-menu-person` |  |  |  |
| CampaignsSidebar01MenuRow | `campaigns-sidebar-01-menu-row` |  |  |  |
| CampaignsSidebar01Row | `campaigns-sidebar-01-row` |  |  |  |
| CampaignsSidebar01ThemeMenu | `campaigns-sidebar-01-theme-menu` |  |  |  |
| CampaignsSidebar01Change | `campaigns-sidebar-01-change` |  |  |  |

## Usage

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

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

export function CampaignsFrame() {
  return <CampaignsSidebar01 />;
}
```

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

It adds 67 registry items: 81 files, 12576 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)
- [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)
- [Sidebar](https://gelatinui.com/components/sidebar.md)
- [Meter](https://gelatinui.com/components/meter.md)

## Keyboard

| Keys | Action |
| --- | --- |
| ⌘B, Ctrl+B | Collapses or opens the panel. |
| Tab | Moves through the app, search, collapse, Create campaign, the rows, the Campaigns chevron, and the account row. |
| Esc | Closes the Drawer. |

## Accessibility

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

The Campaigns chevron says if it shows or hides the states.

The monthly sends gauge has the name Monthly sends.

## Motion

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