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.
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
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
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.mdThe index of every part is at /llms.txt.