Skip to content
caliper ui pro docs

Folder tabs

Tabs as folders in a drawer. The chosen folder comes to the front and the rest sit behind it with their tabs showing, so you can see how many there are and where you are. Distance back is the number of steps from the open tab.

Pro

Overview

Workspace at a glance

  • Seats12 of 15
  • PlanTeam
  • RegionEU (Frankfurt)

Billing

Next invoice and payment method

  • Next invoiceNov 01 · $199.00
  • CardVisa ending 4821
  • Tax IDAdded

Members

Who can sign in

  • Owners2
  • Admins3
  • Pending invites4

Audit

Everything that changed

  • Last 24 hours18 events
  • Last exportOct 12
  • Retention1 year

When to use

  • A handful of related sections such as settings, where place in the set is worth showing.
  • Tabs that should feel like one object rather than a toolbar.

When not to use

  • More than about eight sections; use the tabs or a sidebar.
  • Tabs that need to scroll sideways.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/folder-tabs

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

FolderTabs

10 props
PropTypeDefaultDescription
tabs *readonly FolderTab[]—
label *string—Accessible name of the tab list.
valuestring—The open tab. Controlled when set; the first tab is open by default.
defaultValuestring—
onValueChange((id: string) => void)—
statusDepthStatus"ready"
messagesDepthMessages—
onRetry(() => void)—
disabledboolean—
classNamestring—

Keyboard

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

Accessibility

It exposes tablist, tab and tabpanel semantics, with aria-label, aria-owns, aria-selected, aria-controls and aria-labelledby kept 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/folder-tabs.md

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

More in Surfaces