TabList API
API reference docs for the React TabList component. Learn about the props, CSS, and other APIs of this exported module.
Component demos
Import
import TabList from '@mui/lab/TabList';
// or
import { TabList } from '@mui/lab';
Props of the Tabs component are also available.
ref
is forwarded to the root element.Inheritance
While not explicitly documented above, the props of the Tabs component are also available in TabList. You can take advantage of this to target nested components.
These class names are useful for styling with CSS. They are applied to the component's slots when specific states are triggered.
Styles applied to the flex container element if centered={true}
& !variant="scrollable"
.
Rule name:centered
Styles applied to the flex container element if orientation="vertical"
.
Rule name:flexContainerVertical
Styles applied to the tablist element if variant="scrollable"
and visibleScrollbar={false}
.
Rule name:hideScrollbar
Styles applied to the tablist element if variant="scrollable"
and orientation="horizontal"
.
Rule name:scrollableX
Styles applied to the tablist element if variant="scrollable"
and orientation="vertical"
.
Rule name:scrollableY
Styles applied to the ScrollButtonComponent component.
Rule name:scrollButtons
Styles applied to the ScrollButtonComponent component if allowScrollButtonsMobile={true}
.
Rule name:scrollButtonsHideMobile
You can override the style of the component using one of these customization options:
- With a global class name.
- With a rule name as part of the component's
styleOverrides
property in a custom theme.