Docs
πŸ—οΈ ⏐ Components
Layout
Tabs

Tabs

The tabs component is a simple way to organize content into different sections.

Examples

Blocks

This component is used in the following Blocks:

Theme

This component uses the following default theme:

  • root{}(3 keys)
      Show all

Learn more about how to customize in the Theme documentation.

API

Tabs

PropDescriptionDefault
classNameThe class name to be added to the tabs.
string
selectedIndexThe active index of the tabs.
number
defaultIndexThe default index of the tabs. Default is 0.
number
0
directionThe direction of the tabs. Default is 'ltr'.
"ltr" | "rtl"
ltr
styleThe style to be added to the tabs.
CSSProperties
variantThe variant of the tabs.
"primary" | "secondary"
primary
sizeThe size of the tabs.
string
medium
onSelectThe callback to be called when a tab is selected.
(index: number) => void
themeTheme for the Tabs.
TabsTheme

TabList

PropDescriptionDefault
idThe id of the tab list. @private
string
classNameThe class name to be added to the tab list.
string
selectedIndexThe active index of the tabs. @private
number
directionThe direction of the tabs. Default is 'ltr'. @private
"ltr" | "rtl"
onSelectThe callback to be called when a tab is selected. @private
(index: number) => void
variantThe variant of the tabs. @private
"primary" | "secondary"
primary
sizeThe size of the tabs. @private
string
medium
themeTheme for the Tabs.
TabsTheme

Tab

PropDescriptionDefault
idThe id of the tab list. @private
string
containerClassNameThe class name to be added to the tab container.
string
classNameThe class name to be added to the tab.
string
disabledThe disabled state of the tab. @private
boolean
selectedThe selected state of the tab. @private
boolean
onSelectThe callback to be called when the tab is selected. @private
() => void
sizeThe size of the tabs. @private
string
medium
themeTheme for the Tabs.
TabsTheme

TabPanel

PropDescriptionDefault
classNameThe class name to be added to the tab panel.
string
themeTheme for the Tabs.
TabsTheme