TabsSubtle

Tab navigation with smooth pill animations.

Installation

This component is primitive-agnostic — same source under both flavors.

Basic

Inspect

Teamspaces content goes here.

With Icons

Inspect

Teamspaces content goes here.

Active Label

Inspect

Teamspaces content goes here.

API Reference — TabsSubtle

PropTypeDefaultDescription
selectedIndexnumber—Index of the currently selected tab.
onSelect(index: number) => void—Called when a tab is selected.
idPrefixstring—Prefix for ARIA IDs linking tabs to panels.
activeLabelbooleanfalseWhen true, only the selected tab shows its text label. Requires icons on tabs.
childrenReactNode—TabsSubtleItem children.

API Reference — TabsSubtleItem

PropTypeDefaultDescription
iconIconComponent—Icon displayed in the tab.
labelstring—Text label for the tab.
indexnumber—Position index within the tab list.
leadingContentReactNode—Status marker or other content before the label.
trailingContentReactNode—Count or badge after the label.

API Reference — TabsSubtlePanel

PropTypeDefaultDescription
indexnumber—Index of this panel.
selectedIndexnumber—Currently selected tab index.
idPrefixstring—Must match the TabsSubtle idPrefix.
childrenReactNode—Panel content, only rendered when selected.