Tabs
beta

Tabs are used to organize content and data sets into different views.

Tablist

Navigational Tabs

Tabs props

NameDefault valueTypeIs required?Description
label
stringNoThe aria label for the tabs
children
ReactNodeYesOnly one or more Tab components should be provided as children
onChange
(selectedId?: string) => voidNoThe onChange handler for Tablist implmenetations
selectedId
stringNoThe ID of the currently selected Tab in Tablist implmentations
currentPath
stringNoThe the path of the current page to matched against the href props in your Tab components for navigational implementations
isNavigation
trueNoRender the Tabs as a nav with links instead of a tablist

Tab props

NameDefault valueTypeIs required?Description
label
stringYesThe label of your Tab
iconName
"Activity" | "AlignedCenter" | "AlignedLeft" | "AlignedRight" | "AnyFile" | "Archive" | "Audio" | "BackArrow" | "Bold" | "BrochureDownload" | "Building" | "BuildingList" | "BuildingSmall" | ... 118 more ... | "Xls"NoName of icon to be displayed in your tab
id
stringNoUnique ID of your tab
tabPanelId
stringNoid of tabpanel that this tab controls
href
stringNoPath to navigate to when tab is clicked