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 tabsFeatures
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
| Key | Description |
|---|---|
ArrowLeft / ArrowRight | Moves focus between tabs |
Home / End | Focuses first / last tab |
Enter / Space | Activates the focused tab |
Tab | Moves 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
© 2026 SmoothUI. Built by Eduardo Calvo.