Tabs

Last updated: October 14, 2026

Tabbed navigation with an animated indicator — underline, pill, or segment variants on Base UI Tabs.

Installation

npx smoothui-cli add tabs

Features

Compound Tabs built on Base UI (Tabs.Root / List / Tab / Panel / Indicator) with Motion-friendly CSS indicator transitions. Variants: underline, pill, and segment. Optional panel opacity crossfade via animated on TabsPanel.

States

Features

Underline tabs with a sliding brand indicator and optional panel fade.

Pill

Rounded pill list with a soft background indicator.

Segment

Full-width segmented control look.

Accessibility

Keyboard Interactions

KeyDescription
ArrowLeft / ArrowRightMoves focus between tabs
Home / EndFocuses first / last tab
Enter / SpaceActivates the focused tab
TabMoves focus into / out of the tablist

Reduced Motion

Indicator transitions and panel opacity fades become instant when prefers-reduced-motion is set (useReducedMotion).

Props

Powered by

motion.dev
base-ui