Back to Tabs
Tabs

Keyboard behavior

Three tabs for exploring arrow-key navigation.

Focus the tab list, then use Arrow Left/Right to move between tabs and Home/End to jump to the first or last tab. Press Enter to activate the focused tab.

Panel one.

API

PropTypeDefaultDescription
tabsTabItem[]Tab definitions with title, content, disabled, icon, and badge.
activeTab / defaultActiveTabnumberControlled / uncontrolled active tab index.
onTabChange(index: number) => voidFires when the active tab changes.
variant"underline" | "pill" | "outline"pillVisual style for the tab strip.
orientation"horizontal" | "vertical"horizontalTab list layout; switches arrow-key axis.
fullHeaderbooleanfalseStretch tabs to fill the header width.
firstLastNavControlbooleanfalseShow jump-to-first/last tab buttons.
classNamestringMerged onto the root tabs container.
id (TabItem)stringOptional stable id for the tab panel.
iconClassName (TabItem)stringExtra classes on the tab icon.
badgeVariant (TabItem)Badge variantVisual style for the tab count badge.
View full API on Tabs

More Tabs examples