---
title: "Tasks Sidebar N.01"
description: "An inset sidebar for a task app: a space switcher, Add task on Q, day views with counts, a week strip with due marks, project progress, and a karma streak."
url: https://gelatinui.com/blocks/tasks-sidebar-01
markdown_url: https://gelatinui.com/blocks/tasks-sidebar-01.md
access: pro
install: "npx shadcn@latest add @gelatin-ui-pro/tasks-sidebar-01"
version: "2026-11-16"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Tasks Sidebar N.01

> An inset sidebar for a task app: a space switcher, Add task on Q, day views with counts, a week strip with due marks, project progress, and a karma streak.

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

## When to use it

Best for: The nav of a personal task app: day views, a week strip, areas with projects, and a karma streak card.

- Use it as the frame of a to-do or task app.
- Pass your words through `content`. Start from `TASKS_SIDEBAR_01_DEFAULT_CONTENT` and change the fields you need.
- Pass your logo in `content.brand.mark`. With none, a letter tile shows.

## When not to use it

- For a general app nav with a workspace switcher, use a [Sidebar](https://gelatinui.com/components/sidebar.md).
- For the parts with no ready contents, use [Sidebar](https://gelatinui.com/components/sidebar.md).

## Notes for agents

- ⌘B (Ctrl+B elsewhere), the rail, or the close button folds it to a 48px icon rail. The rail or ⌘B opens it again.
- Q presses Add task anywhere on the page, but not in a field, a menu, or a dialog. Wire `onClick` of `TasksSidebar01AddTask` to your task form.
- Each project shows a Status Icon with its progress pie: `todo`, `in-progress`, or `in-review` with `progress` 0 to 1.
- A cookie keeps the state. Pass `cookie={false}` in a demo.
- `TasksSidebar01Page` is only the page bar, with actions that do nothing: put your task list under it.
- With children, the block ignores `content`.

## Anatomy

```text
TasksSidebar01
├─ TasksSidebar01AddTask (0..n)
├─ TasksSidebar01Brand (0..n)
├─ TasksSidebar01Default (0..n)
├─ TasksSidebar01Karma (0..n)
├─ TasksSidebar01Page (0..n)
├─ TasksSidebar01ProjectRow (0..n)
├─ TasksSidebar01RailLink (0..n)
├─ TasksSidebar01Space (0..n)
├─ TasksSidebar01ViewRow (0..n)
├─ TasksSidebar01Week (0..n)
└─ TasksSidebar01Panel (0..n)
   └─ TasksSidebar01Row (0..n)
```

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| TasksSidebar01 | `tasks-sidebar-01` |  |  |  |
| TasksSidebar01AddTask | `tasks-sidebar-01-add-task` | `data-collapsible` |  |  |
| TasksSidebar01Brand | `tasks-sidebar-01-brand` | `data-collapsible` |  |  |
| TasksSidebar01Default | `tasks-sidebar-01-panel` | `data-collapsible` |  |  |
| TasksSidebar01Karma | `tasks-sidebar-01-karma` | `data-collapsible` |  | `motion-timing`, `status-colors` |
| TasksSidebar01Page | `tasks-sidebar-01-page` |  |  |  |
| TasksSidebar01ProjectRow | `tasks-sidebar-01-project-row` |  |  |  |
| TasksSidebar01RailLink | `tasks-sidebar-01-rail-link` | `data-collapsible` |  |  |
| TasksSidebar01Space | `tasks-sidebar-01-space` |  |  |  |
| TasksSidebar01ViewRow | `tasks-sidebar-01-view-row` | `data-collapsible` |  |  |
| TasksSidebar01Week | `tasks-sidebar-01-week` | `data-collapsible` |  |  |
| TasksSidebar01Panel | `tasks-sidebar-01-panel` |  |  |  |
| TasksSidebar01Row | `tasks-sidebar-01-row` |  |  |  |

## Usage

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

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

export function TasksFrame() {
  return <TasksSidebar01 />;
}
```

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

It adds 77 registry items: 89 files, 15967 lines, and the npm packages `@base-ui/react`, `@dicebear/core`, `@dicebear/styles`, `@internationalized/date`, `@mantine/hooks`, `@phosphor-icons/react`, `clsx`, `motion`, `react-aria-components`, `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)
- [Calendar](https://gelatinui.com/components/calendar.md)
- [Generated Avatar](https://gelatinui.com/components/generated-avatar.md)
- [Kbd](https://gelatinui.com/components/kbd.md)
- [Menu](https://gelatinui.com/components/menu.md)
- [Sidebar](https://gelatinui.com/components/sidebar.md)
- [Status Icon](https://gelatinui.com/components/status-icon.md)
- [Week Strip](https://gelatinui.com/components/week-strip.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)
- [Week Strip](https://gelatinui.com/components/week-strip.md)
- [Status Icon](https://gelatinui.com/components/status-icon.md)

## Keyboard

| Keys | Action |
| --- | --- |
| ⌘B, Ctrl+B | Folds the panel to the icon rail, or opens it. |
| Q | Presses Add task. |
| Tab | Moves through the buttons, the rows, the week, and the project rows. |
| Arrow keys | Move between the days of the week strip. |
| Enter, Space | Opens a view or a project, or picks a day. |
| Esc | Closes the space menu or the Drawer. |

## Accessibility

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

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

Add task tells its key with `aria-keyshortcuts`.

## Motion

| Part | Motion |
| --- | --- |
| Rail | sheet · the panel width changes |
| Week | panel · the pill slides to the picked day |
