Arc
ComponentsBlocksDocsPricingTry the demo
Introduction
Installation
Theming
Motion
AI and MCP
Changelog
Metrics dashboard
KPI drilldownNew
Metric explorer
Revenue explorer
MRR waterfall
Cohort retention
Usage forecast
Journey flow
Connected scatterNew
Market terminalNew
Budget varianceNew
Small multiplesNew
Line replayNew
AI chatNew
AI composer
Agent runNew
SidebarPro4
Page header
Command palette
Notification center
Empty states
Login and sign up5
OTP input
Multi-step formPro
Settings page
Security settings
Billing overview
Usage billingNew
Team members
Invite peopleNew
Team directory
Roles and permissions
API keys
Webhooks
Integrations
Plan comparison
Pricing calculatorNewPro
Usage pricingPro
Cart drawerNewPro
Checkout summaryNewPro
Invoice studio
Wallet card
Product listingNew
Product detailNew
Inbox triage
Support conversation
Support widget
File upload
Media playerPro
Week calendarNew
Availability picker
Project board
Release readiness
Hero sectionNew
Hero signupNewPro
Scroll storyNewPro
Spotlight gridNewPro
Feature bentoNewPro
Comparison tableNew
Logo marquee
Studio perspectivesPro
Stats bandNew
Changelog feed
FAQ sectionNew
Contact sectionNew
Team showcasePro
Blog gridNew
Site headerNew
Site footerNew
CTA sectionNew
Newsletter signupNew
Revenue globe
Customer galaxy
Semantic zoom
Layout morph
What’s new80 new
BlocksSidebar

SidebarPro

App and docs sidebars: a folding rail, a workspace switcher, a mail shell, and a docs tree.

4 variants

WorkspaceA product sidebar with a workspace switcher, live search, draggable favorites, and inline projects.

Live block · sample data

When to use

  • The main navigation of a multi-workspace app.
  • Sidebars with draggable favorites and inline project creation.
  • Navigation that should collapse to an icon rail with the [ shortcut.

When not to use

  • Use sidebar-rail when you need the whole app shell with a mobile sheet.
  • Use docs-sidebar for documentation trees.
  • Use inbox-sidebar for mail folders and labels.

Installation

Pro source and install commands unlock with a Pro plan.

Usage

Use this as the main navigation of a multi-workspace app. Load workspaces, favorites, and projects from your API, route through onNavigate, and persist order and new projects; creation in the preview is simulated.

example.tsx
1import { WorkspaceSidebar } from "@/registry/blocks/workspace-sidebar/workspace-sidebar";2import { useRouter } from "next/navigation";3 4export function AppNav() {5  const router = useRouter();6 7  return (8    <WorkspaceSidebar9      onNavigate={({ workspace, id }) => router.push(`/${workspace}/${id}`)}10      onCollapsedChange={(collapsed) => localStorage.setItem("rail", String(collapsed))}11    />12  );13}
Built fromSearch fieldAvatarAnimated counterText morphButton

API reference

WorkspaceSidebar

A product sidebar with a workspace switcher, live search, draggable favorites, inline project creation, and a collapsible icon rail. Workspaces, favorites, and projects are sample data.

PropTypeDefaultDescription
classNamestring–Extra class on the root element.
onNavigate(target: { workspace: string; id: string; name: string }) => void–Called when a favorite or project is opened. Connect it to your router.
defaultCollapsedbooleanfalseStart as the narrow icon rail.
onCollapsedChange(collapsed: boolean) => void–Called when the sidebar collapses or expands, from the toggle or the [ shortcut.

Keyboard interactions

[
Toggles the icon rail when focus is not in a text field, menu, or dialog.
Alt+Arrow UporDown
Moves the focused favorite up or down.
Escape
Clears the search, or cancels a new project name.

Accessibility

  • The workspace switcher is a Radix dropdown menu with full menu keyboard support.
  • Favorites can be reordered by keyboard as well as by drag.
  • The rail shortcut ignores inputs, menus, and dialogs so typing is never hijacked.

Motion

  • The sidebar width springs between full and rail, and favorites reorder with layout animation.
  • New projects slide in and counts roll with the animated counter.
  • Reduced motion is applied after hydration and makes width and reorder changes instant.

Responsive behavior

  • The open width is the --full custom property, 272px by default, and the rail is 64px.
  • It has no mobile sheet; below 380px it only shortens to 660px, so pair it with drawer on phones.
  • Favorites drag on the y axis with Reorder, and Alt+Arrow keys reorder without a pointer.

Performance

  • Width springs through one motion value, so collapsing does not re-render the lists.
  • Lists are not virtualized; keep favorites and projects to a sidebar's worth of rows.

Notes for AI

Give your coding assistant the Markdown reference instead of screenshots.

  • Use as the main navigation of a multi-workspace app.
  • Load workspaces, favorites, and projects from your API, route through onNavigate, and persist favorite order and new projects yourself.
  • Composes Arc search-field, avatar, animated-counter, text-morph, and button.
/components/blocks/sidebar/markdown

The full library index for assistants is at /llms.txt.

Related

Sidebar: App railProBlockAn app shell whose sidebar folds into an icon rail and slides in as a sheet on phones.Sidebar: InboxProBlockA mail sidebar whose Compose button grows into a composer and whose folders take dropped mail.Sidebar: DocsProBlockA docs layout with a live filtering nav tree, version switcher, and a gliding on this page outline.Search fieldComponentA recognizable search entry point with clear affordances.
PreviousAI composerNextSettings page
Arc · 75 block pagesllms.txt

On this page

  • Preview
  • When to use
  • When not to use
  • Installation
  • Usage
  • API reference
  • Keyboard
  • Accessibility
  • Motion
  • Responsive behavior
  • Performance
  • Notes for AI
  • Related
View as Markdown

Favorites

Drag, or press Alt with the up and down arrows, to reorder.

Projects

New projectPress Enter to create the project or Escape to cancel.
Storage38%0012345678900123456789%
38.4 GB of 100 GB