Skip to content
caliper ui pro docs

Liquid tab bar

A bottom tab bar whose active pill stretches like liquid between items.

Pro

When to use

  • A mobile app with three to five top-level destinations.
  • You want a bit of character in navigation.

When not to use

  • There are more than five destinations.
  • The product is dense and utilitarian.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/liquid-tab-bar

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

LiquidTabBar

6 props
PropTypeDefaultDescription
label *string—
items *readonly BarItem[]—
value *string—
onValueChange *(id: string) => void—
variant"liquid" | "glass""liquid""liquid" is a solid bar with a stretching blob; "glass" is a floating frosted pill that opens the chosen label.
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 and tab semantics, with aria-selected, aria-label and aria-hidden 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/liquid-tab-bar.md

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

More in Bars & menus