Skip to content
caliper ui pro docs

Workspace sidebar

A sidebar with workspace switcher, groups and the signed-in user.

Pro
Home

Home

This week at a glance.

Compared with the previous 7 days
  • Active teams1,2603.1%up, good vs previous 7 days
  • Revenue$42k8.4%up, good vs previous 7 days
Growth against plan
Growth against plan
PointActualPlanEvent
M180100
M2101107
M3111114
M4109121
M5105128
M6112135
M7130142
M8152149
M9166156
M10167163
M11162170
M12165177

When to use

  • The main navigation of an application.

When not to use

  • A public website.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/workspace-sidebar

Adds its 5 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.

API reference

WorkspaceSidebar

13 props
PropTypeDefaultDescription
workspaces *readonly Workspace[]—
workspaceId *string—
onWorkspaceChange *(id: string) => void—
onCreateWorkspace(() => void)—
groups *readonly WorkspaceNavGroup[]—
activeId *string—
onNavigate *(id: string) => void—
favoritesreadonly string[][]Ids of pinned items.
onToggleFavorite((id: string) => void)—
onSearch(() => void)—
user *{ name: string; email: string; avatar?: string | undefined; }—
userMenureadonly { label: string; onSelect: () => void; destructive?: boolean | undefined; }[]—Menu entries for the user, as [label, action] pairs.
classNamestring—

Keyboard

↓
Moves to the next item or value.
↑
Moves to the previous item or value.
←
Moves to the previous item or value.
→
Moves to the next item or value.
Home
Jumps to the first item or the minimum.
End
Jumps to the last item or the maximum.

Accessibility

It is built on native elements and keeps aria-current, aria-hidden, aria-pressed, aria-label, aria-expanded and aria-labelledby in step with state.

Notes for AI

Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

/docs/components/workspace-sidebar.md

The index of every part is at /llms.txt.

More in Workspace chrome