Workspace sidebar
ProA sidebar with workspace switcher, groups and the signed-in user.
pnpm dlx shadcn@latest add @caliper/workspace-sidebarHome
This week at a glance.
- Active teams1,2603.1%up, good vs previous period
- Revenue$42k8.4%up, good vs previous period
| Point | Actual | Plan | Event |
|---|---|---|---|
| M1 | 80 | 100 | |
| M2 | 101 | 107 | |
| M3 | 111 | 114 | |
| M4 | 109 | 121 | |
| M5 | 105 | 128 | |
| M6 | 112 | 135 | |
| M7 | 130 | 142 | |
| M8 | 152 | 149 | |
| M9 | 166 | 156 | |
| M10 | 167 | 163 | |
| M11 | 162 | 170 | |
| M12 | 165 | 177 |
When to use #
Use it for
- The main navigation of an application.
Skip it when
- A public website.
Installation #
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.
Usage #
Import it from your copy of the source. The example behind the preview comes with the source.
import { WorkspaceSidebar } from "@/components/ui/workspace-sidebar"
The worked example comes with Pro
The 28-line example behind the preview opens here with a Pro or Team licence.
API reference #
WorkspaceSidebar
component
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.
Motion #
It declares no animation in its component source. Any transition comes from its stylesheet, which uses the duration tokens that collapse to instant under prefers-reduced-motion.