0
Components
API reference

Tabs

Layered content panels with a spring-animated active indicator, nine visual variants, stacked icon layout, and vertical orientation.

Installation

Usage

Examples

Pill

Underline

Primary Stacked

Dot

Circular

Vertical

API Reference

Tabs

Wraps Base UI Tabs.Root. Manages active tab state and layout orientation.

PropTypeDefaultDescription
valueunknown-Controlled active tab value
defaultValueunknown-Initial uncontrolled active tab value
onValueChange(value: unknown) => void-Called when the active tab changes
orientation"horizontal" | "vertical""horizontal"Layout direction and arrow-key navigation
classNamestring-Additional CSS classes
...propsBase UI Tabs Root props-All other Tabs Root props are supported

TabsList

Container for TabsTab triggers with a built-in spring-animated Tabs.Indicator.

PropTypeDefaultDescription
variant"default" | "pill" | "outline" | "circular" | "primary" | "secondary" | "underline" | "clean" | "dot""default"Indicator and surface style preset
stackedbooleanfalseStacks icon above label vertically inside each tab
classNamestring-Additional CSS classes
...propsBase UI Tabs List props-All standard tabs list props

TabsTab / TabsTrigger

Interactive tab button associated with a TabsPanel via value.

PropTypeDefaultDescription
valueunknown-Identifier matching a TabsPanel
disabledbooleanfalseDisables interaction and dims the tab
classNamestring-Additional CSS classes
...propsBase UI Tabs Tab props-All standard tab attributes

TabsPanel / TabsContent

Content panel displayed when its value matches the active tab.

PropTypeDescription
valueunknownIdentifier matching a TabsTab
classNamestringAdditional CSS classes
...propsBase UI Tabs Panel propsAll standard panel attributes

© taut ui — built with Base UI and Tailwind CSS v4.