跳转到内容

TabList API

API documentation for the React TabList component. Learn about the available props, and the CSS API.

Import

import TabList from '@mui/lab/TabList';
// 或
import { TabList } from '@mui/lab';
You can learn about the difference by reading this guide on minimizing bundle size.

属性

Props of the Tabs component are also available.

名称类型默认值描述
childrennode
A list of <Tab /> elements.

ref 则会被传递到根元素中。

Inheritance

While not explicitly documented above, the props of the Tabs component are also available on TabList. You can take advantage of this to target nested components.

Demos