Arc
ComponentsBlocksScreensDocsPricingTry the demo
Get Pro
Saved

Docs

IntroductionInstallationThemingMotionAI and MCPChangelog

Components136

ButtonAction buttonSplit buttonButton groupFloating button groupExpanding button groupCopy buttonAction swapIcon morphConfirm morphTheme switcher

Hold to confirmSwipe actionsReactions

Dropdown menuContext menuUser menu

InputTextareaPassword fieldPassword strengthSearch fieldExpanding searchInline edit

Number fieldMoney inputPhone inputScrub inputTag inputMention inputShortcut recorder

SelectComboboxMulti-selectMorph selectChip group

Radio cardsBilling toggleCheckboxRadio groupSwitchSegmented controlRatingToggle group

SliderElastic sliderRange histogram sliderRuler sliderWindow rangeNewProLens rangeNewPro

CalendarDate pickerDate range pickerTime pickerColor pickerEmoji pickerPro

Rich text editorSignature padFile dropzoneAvatar uploadPro

TabsBreadcrumbPaginationMega menu morphProTable of contents progressPro

Scroll areaAccordionExpandable cardResizable panelsExpandable text

DialogDrawerBottom sheetPopoverHover cardTooltipShare accessProConfirm popoverPro

AlertToastToast stackAnnouncement barCookie consentUndo toastPro

ProgressSkeletonStepperCountdownUsage meterOnboarding checklist

AvatarAvatar groupBadgePresence stackPro

CardMetric cardEmpty stateMetric tickerPro

Line chartBar chartDonut chartStreamgraphBrush chartWaffle chartSlope chartSparklineGaugeActivity heatmapAnimated counterRidgelineTreemapSplit barPro

SunburstProSankey flowProFunnel chartProRadar chartProRealtime streamProRace bar chartProData gridPro

Sortable data tableTree tableTree viewReorderable listFilter toolbarCode blockJSON viewer

TimelineComment threadChat thread

Image compareCarouselCard stack

Text revealIn-view titleText morphText shimmer

Blocks122

KPI drilldownProMetric explorerProRevenue explorerProMRR waterfallProCohort retentionProUsage forecastProJourney flowProUptime statusProPivot builderProChoropleth explorerProConnected scatterProHorizon chartProAccount healthPro

Budget variancePro

Small multiplesProLine replayPro

AI chatProAI composerProAI answerProModel pickerProModel arenaProPrompt studioProDocument extractionProAgent memoryProAI side panelProAI inline editProResearch runProAI insight cardProCatch upProAI feature launchProAI search barProAI setup wizardProCall insightsProLead scoringPro

Agent runProAgent tasksProAgent approvalsProAgent routinesProAgent orchestratorProMCP serversProKnowledge baseProEval suiteProAgent builderProAgent galleryPro

SidebarPro4Page headerCommand paletteNotification centerSelection toolbarProEmpty statesSearch resultsPro

Login and sign up5, free and Pro variantsOnboarding illustrationProOTP inputMulti-step formProTwo-factor setupProMagic linkPro

Settings pageProSettings commandProSecurity settingsProBilling overviewProUsage billingProCancel flowProOnboarding surveyProSpend alertPro

Team membersProInvite peopleProRoles and permissionsProProfile pagePro

API keysProWebhooksProIntegrationsProImport wizardNewProEnvironment variablesProDomain verifyProWebhook testerPro

Plan comparisonPricing calculatorProUsage pricingProCart drawerProCheckout summaryProLive checkoutProSeat managerProCredit top-upPro

Wallet cardProDelivery trackerProSeat mapPro

Activity feedProSupport widgetProFeature votingPro

File uploadMedia playerPro

Availability pickerProRelease readinessProFeedback boardProSmart schedulerProTask breakdownProGoal trackerPro

Hero sectionHero signupPro

Scroll storyProSpotlight gridProFeature bentoProComparison table

Logo marqueeStudio perspectivesProStats band

Changelog feedFAQ sectionContact sectionTeam showcaseProBlog grid

Site headerSite footerCTA sectionNewsletter signup

Activity terrainProRevenue globeProCustomer galaxyProSemantic zoomProLayout morphProExploded viewPro

Screens14

Metrics dashboardProMarket terminalPro

Kanban boardProProject boardProGantt timelinePro

Week calendarProMonth calendarNewPro

Team directoryPro

Inbox triageProSupport conversationProHelp centerPro

Product listingProProduct detailProInvoice studioPro

Special components106

Share sheetProAction morphProMorph navProDockProLiquid tab barProOrbit menuPro

Glass menuProGlass segmentedProGlass cardProGlass tab barPro

Sheet stackProWallet stackProControl centerProHolo cardProCard to articleProLink unfurlPro

Product galleryProLightbox galleryProPhoto gridProCover flowPro

Voice orbProNow playingProVoice recorderPro

Booking pillProActivity ringsProTime dialProDate reelPro

Keycap keyboardProSlot textSand textProTypewriter terminalPro

Stretch refreshProMorph loaderProSkeleton morphProBlack holeProCharge sessionPro

Sticker peelProTicket tearProPage curlProOrbit logosProPrize wheelPro

Dot gridProImage trailProGravity wellProInk fluidProCursor trail drawPro

Agent statusProTool callProAgent planProAgent timelineProContext windowProReasoning blockProSource cardsProModel cardProAI workflowProCode suggestionProGhost textProImage generationProDictation buttonProSpeech playerProMeeting summaryProReply draftProAgent handoffProPII redactionProResponse feedbackProLLM cost calculatorProProvider keysProGeneration statsProAI translateProTL;DR toggleProConnector setupProSmart form fillProEnrich columnProTicket routerProAsk your dataProAgent cursorProProvider statusProTraining runProAI commandProStarter promptsProAI mascotProImage revealProAI sparkProPixel mascotProGhost mascotProCube mascotProTone tunerProUpgrade promptProReferral cardProTrial bannerProTeam switcherProLive visitorsProSocial proof toastProInstall snippetPro

Data flowProPayment flowProDNS resolutionProModel trainingProMulti-region failoverProVector searchProBranch graphProAgent loopProMixture of expertsProSpeculative decodingProPrompt cacheProReasoning treePro
What’s new4 new
BlocksSidebar

Sidebar

Pro

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 "@/components/arc/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.Reorderable listComponentOrganize items with direct drag and drop.
PreviousAI composerNextSettings page
Arc · 122 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