Skip to content
caliper ui pro docs

Animated tabs

Tabs with an expanding or morphing indicator, including closable tabs.

Pro

3 unread · Priya Raman asked for the Q4 numbers by Friday.

Use Alt and left or right arrow to reorder a focused tab.

Q4 planning, Room pages and 4 more edited this week.

When to use

  • Workspaces where people open and close several documents.
  • A more expressive tab bar for showcase pages.

When not to use

  • A plain set of views; use tabs.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/animated-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

ExpandableTabs

5 props
PropTypeDefault
label *string—
items *readonly AnimatedTab[]—
value *string—
onValueChange *(id: string) => void—
classNamestring—

MorphingTabs

7 props
PropTypeDefault
label *string—
items *readonly AnimatedTab[]—
value *string—
onValueChange *(id: string) => void—
classNamestring—
onItemsChange *(items: AnimatedTab[]) => void—
onClose((id: string) => void)—

Keyboard

←
Moves to the previous item or value.

Accessibility

It exposes tab and status semantics, with aria-label, aria-hidden and aria-describedby kept in step with state. Changes that matter are announced through a live region.

Notes for AI

Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

/docs/components/animated-tabs.md

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

More in Search & tabs