Skip to content
caliper ui pro docs

Sidebar rail

A narrow icon rail that expands.

Pro

Northwind

Home

3 projects due this week. API v3 ships on 4 November.

When to use

  • Space-constrained navigation.

When not to use

  • Labels matter.

Installation

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

Adds its 3 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

SidebarRail

9 props
PropTypeDefault
items *readonly RailItem[]—
bottomreadonly RailItem[][]
activeId *string—
onNavigate *(id: string) => void—
pinnedboolean—
onPinnedChange((pinned: boolean) => void)—
logoReactNode—
labelstring"Primary"
classNamestring—

Keyboard

Escape
Closes or cancels, then returns focus to where it came from.

Accessibility

It is built on native elements and keeps aria-current, aria-label, aria-hidden and aria-pressed 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/sidebar-rail.md

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

More in Workspace chrome