Skip to content
caliper ui pro docs

Clip tabs

Tabs whose selection is a window. An ink copy of the labels is clipped to the chosen tab, so as the pill slides the text turns white exactly where it passes, letter by letter, instead of fading.

Pro
Every task in one list, sorted by due date.

When to use

  • View switches at the top of a page or panel: List, Board, Calendar.
  • A small set of filters where the choice should feel physical.

When not to use

  • Choices inside forms; use the segmented control.
  • Long labels or more than five tabs on a phone.

Installation

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

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

ClipTabs

6 props
PropTypeDefault
label *string—
tabs *readonly ClipTab[]—
valuestring—
defaultValuestring—
onValueChange((id: string) => void)—
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 tab, tablist and tabpanel semantics, with aria-hidden, aria-label, 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/clip-tabs.md

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

More in Morphing controls