The alignment of the tabs
Tabs
A React component that helps you build accessible tabs, by providing keyboard interactions and ARIA attributes described in the WAI-ARIA Tab Panel Design Pattern.
Props#
Tabs Props#
Tabs composes Box so you call pass all Box related props.
align
align"center" | "end" | "start"colorScheme
colorScheme"whiteAlpha" | "blackAlpha" | "gray" | "red" | "orange" | "yellow" | "green" | "teal" | "blue" | "cyan" | "purple" | "pink" | "linkedin" | "facebook" | "messenger" | "whatsapp" | "twitter" | "telegram""blue"defaultIndex
defaultIndexThe initial index of the selected tab (in uncontrolled mode)
numberdirection
directionThe writing mode direction. - When in RTL, the left and right navigation is flipped
"ltr" | "rtl""ltr"id
idThe id of the tab
stringindex
indexThe index of the selected tab (in controlled mode)
numberisFitted
isFittedIf true, tabs will stretch to width of the tablist.
booleanisLazy
isLazyPerformance 🚀:
If true, rendering of the tab panel's will be deferred until it is selected.
booleanisManual
isManualIf true, the tabs will be manually activated and
display its panel by pressing Space or Enter.
If false, the tabs will be automatically activated
and their panel is displayed when they receive focus.
booleanlazyBehavior
lazyBehaviorPerformance 🚀: The lazy behavior of tab panels' content when not active. Only works when `isLazy={true}` - "unmount": The content of inactive tab panels are always unmounted. - "keepMounted": The content of inactive tab panels is initially unmounted, but stays mounted when selected.
LazyMode"unmount"onChange
onChangeCallback when the index (controlled or un-controlled) changes.
((index: number) => void)orientation
orientationThe orientation of the tab list.
"horizontal" | "vertical""horizontal"size
size"sm" | "md" | "lg""md"variant
variant"line" | "enclosed" | "enclosed-colored" | "soft-rounded" | "solid-rounded" | "unstyled""line"Tab Props#
id
idstringisDisabled
isDisabledIf true, the Tab won't be toggleable
booleanisSelected
isSelectedbooleanpanelId
panelIdstringProps#
Tabs Props#
Tabs composes Box so you call pass all Box related props.
align
alignThe alignment of the tabs
"center" | "end" | "start"colorScheme
colorScheme"whiteAlpha" | "blackAlpha" | "gray" | "red" | "orange" | "yellow" | "green" | "teal" | "blue" | "cyan" | "purple" | "pink" | "linkedin" | "facebook" | "messenger" | "whatsapp" | "twitter" | "telegram""blue"defaultIndex
defaultIndexThe initial index of the selected tab (in uncontrolled mode)
numberdirection
directionThe writing mode direction. - When in RTL, the left and right navigation is flipped
"ltr" | "rtl""ltr"id
idThe id of the tab
stringindex
indexThe index of the selected tab (in controlled mode)
numberisFitted
isFittedIf true, tabs will stretch to width of the tablist.
booleanisLazy
isLazyPerformance 🚀:
If true, rendering of the tab panel's will be deferred until it is selected.
booleanisManual
isManualIf true, the tabs will be manually activated and
display its panel by pressing Space or Enter.
If false, the tabs will be automatically activated
and their panel is displayed when they receive focus.
booleanlazyBehavior
lazyBehaviorPerformance 🚀: The lazy behavior of tab panels' content when not active. Only works when `isLazy={true}` - "unmount": The content of inactive tab panels are always unmounted. - "keepMounted": The content of inactive tab panels is initially unmounted, but stays mounted when selected.
LazyMode"unmount"onChange
onChangeCallback when the index (controlled or un-controlled) changes.
((index: number) => void)orientation
orientationThe orientation of the tab list.
"horizontal" | "vertical""horizontal"size
size"sm" | "md" | "lg""md"variant
variant"line" | "enclosed" | "enclosed-colored" | "soft-rounded" | "solid-rounded" | "unstyled""line"Tab Props#
id
idstringisDisabled
isDisabledIf true, the Tab won't be toggleable
booleanisSelected
isSelectedbooleanpanelId
panelIdstring