---
title: "Payroll Sidebar N.01"
description: "The sidebar of an HR and payroll app: people, hiring, payroll with its pages and the deadline, time off, requests to approve, and the steps of the next pay run."
url: https://gelatinui.com/blocks/payroll-sidebar-01
markdown_url: https://gelatinui.com/blocks/payroll-sidebar-01.md
access: pro
install: "npx shadcn@latest add @gelatin-ui-pro/payroll-sidebar-01"
version: "2026-11-16"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Payroll Sidebar N.01

> The sidebar of an HR and payroll app: people, hiring, payroll with its pages and the deadline, time off, requests to approve, and the steps of the next pay run.

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

## When to use it

Best for: The nav of an HR or payroll app: sections with child pages, requests to approve, and the next pay run.

- Use it as the frame of an HR, payroll, or people ops app.
- Pass your words through `content`. Start from `PAYROLL_SIDEBAR_01_DEFAULT_CONTENT`, and change the fields you need.
- Give the workspace a `mark` with your logo. With no `mark`, the tile shows `initial`.

## When not to use it

- For the nav of an app with workspaces and teams, 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

- A `nav` entry with `items` is a section: it folds in the panel, and in the icon rail it opens its pages in a Menu beside the rail on hover or on a press.
- ⌘B (Ctrl+B elsewhere), the rail, or the header button collapses it to a 48px icon rail. Rows with `inRail: false`, the approvals, and the pay run hide there.
- The approve and decline buttons do nothing: pass `onApprove` and `onDecline` to `PayrollSidebar01Approval`.
- A cookie keeps the state. Pass `cookie={false}` in a demo.
- Under 768px the panel is a left Drawer, and the page bar shows its button.
- To change the order or drop a part, pass the parts as children. With children, the block ignores `content`.

## Anatomy

```text
PayrollSidebar01
├─ PayrollSidebar01Account (0..n)
├─ PayrollSidebar01Approval (0..n)
├─ PayrollSidebar01Approvals (0..n)
├─ PayrollSidebar01Count (0..n)
├─ PayrollSidebar01Default (0..n)
├─ PayrollSidebar01Due (0..n)
├─ PayrollSidebar01Page (0..n)
├─ PayrollSidebar01PayRun (0..n)
├─ PayrollSidebar01Section (0..n)
├─ PayrollSidebar01Workspace (0..n)
├─ PayrollSidebar01AccountMenu (0..n)
├─ PayrollSidebar01MenuPerson (0..n)
├─ PayrollSidebar01MenuRow (0..n)
├─ PayrollSidebar01Panel (0..n)
│  ├─ PayrollSidebar01Flyout (0..n)
│  ├─ PayrollSidebar01SubRow (0..n)
│  └─ PayrollSidebar01Row (0..n)
└─ PayrollSidebar01ThemeMenu (0..n)
```

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| PayrollSidebar01 | `payroll-sidebar-01` |  |  |  |
| PayrollSidebar01Account | `payroll-sidebar-01-account` |  |  |  |
| PayrollSidebar01Approval | `payroll-sidebar-01-approval` |  |  |  |
| PayrollSidebar01Approvals | `payroll-sidebar-01-approvals` | `data-collapsible` |  | `hit-area` |
| PayrollSidebar01Count | `payroll-sidebar-01-count` |  |  |  |
| PayrollSidebar01Default | `payroll-sidebar-01-panel` | `data-collapsible` |  |  |
| PayrollSidebar01Due | `payroll-sidebar-01-due` |  |  |  |
| PayrollSidebar01Flyout | `payroll-sidebar-01-flyout` |  |  |  |
| PayrollSidebar01Page | `payroll-sidebar-01-page` |  |  |  |
| PayrollSidebar01PayRun | `payroll-sidebar-01-pay-run` | `data-collapsible` | `--radius` | `status-colors` |
| PayrollSidebar01Section | `payroll-sidebar-01-section` | `data-collapsible` |  |  |
| PayrollSidebar01SubRow | `payroll-sidebar-01-sub-row` |  |  |  |
| PayrollSidebar01Workspace | `payroll-sidebar-01-workspace` | `data-collapsible` |  |  |
| PayrollSidebar01AccountMenu | `payroll-sidebar-01-account-menu` |  |  |  |
| PayrollSidebar01MenuPerson | `payroll-sidebar-01-menu-person` |  |  |  |
| PayrollSidebar01MenuRow | `payroll-sidebar-01-menu-row` |  |  |  |
| PayrollSidebar01Panel | `payroll-sidebar-01-panel` |  |  |  |
| PayrollSidebar01Row | `payroll-sidebar-01-row` |  |  |  |
| PayrollSidebar01ThemeMenu | `payroll-sidebar-01-theme-menu` |  |  |  |

## Usage

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

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

export function PayrollFrame() {
  return <PayrollSidebar01 />;
}
```

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

It adds 66 registry items: 81 files, 12522 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)
- [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

- [Sidebar](https://gelatinui.com/components/sidebar.md)
- [Workspace Sidebar N.01](https://gelatinui.com/blocks/workspace-sidebar-01.md)
- [Stepper](https://gelatinui.com/components/stepper.md)
- [Menu](https://gelatinui.com/components/menu.md)

## Keyboard

| Keys | Action |
| --- | --- |
| ⌘B, Ctrl+B | Collapses or opens the panel. |
| Enter, Space | Folds Payroll in the panel, or opens its flyout in the icon rail. |
| Tab | Moves through search, the rows, the approval buttons, and the account. |
| Esc | Closes the flyout or the Drawer. |

## Accessibility

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

The open page has `aria-current="page"`, and each approval button names the person.

The pay run steps are a read-only Stepper: each dot has the name of its step.

## Motion

| Part | Motion |
| --- | --- |
| Rail | panel · the panel width changes |
| Payroll | panel · the child pages fold |
| Flyout | popup · the menu beside the rail |
| Drawer | sheet · the panel under 768px |
