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
defaultIndex
The initial index of the selected tab (in uncontrolled mode)
number
direction
direction
The writing mode direction. - When in RTL, the left and right navigation is flipped
"ltr" | "rtl"
"ltr"
id
id
The id of the tab
string
index
index
The index of the selected tab (in controlled mode)
number
isFitted
isFitted
If true
, tabs will stretch to width of the tablist.
boolean
isLazy
isLazy
Performance 🚀:
If true
, rendering of the tab panel's will be deferred until it is selected.
boolean
isManual
isManual
If 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.
boolean
lazyBehavior
lazyBehavior
Performance 🚀: 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
onChange
Callback when the index (controlled or un-controlled) changes.
((index: number) => void)
orientation
orientation
The 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
id
string
isDisabled
isDisabled
If true
, the Tab
won't be toggleable
boolean
isSelected
isSelected
boolean
panelId
panelId
string