Tabs

Segmented control tabs with sliding active indicator, proximity hover, and spring animations.

Installation

Basic

Library content.

With Icons

Library content.

Controlled

Library content.

Active: library

API Reference — Tabs

PropTypeDefaultDescription
valuestringControlled active tab value. Takes precedence over selectedIndex.
onValueChange(value: string) => voidCalled when the active tab changes.
selectedIndexnumberIndex-based controlled alternative.
onSelect(index: number) => voidCalled with the new index when the active tab changes.
defaultValuestringDefault active tab for uncontrolled usage.
childrenReactNodeTabsList and TabPanel children.

API Reference — TabsList

PropTypeDefaultDescription
childrenReactNodeTabItem children.
classNamestringAdditional CSS classes for the container.

API Reference — TabItem

PropTypeDefaultDescription
valuestringUnique value identifying this tab.
iconIconComponentOptional leading icon.
labelstringText label for the tab.

API Reference — TabPanel

PropTypeDefaultDescription
valuestringMust match a TabItem value.
childrenReactNodePanel content, rendered when the matching tab is active.