跳转到内容

TabList API

想要学习更多组件属性和 CSS API,可以查阅 React TabList 组件的 API 文档。

导入

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.

属性

Tabs 组件的属性也是可用的。

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

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

继承

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.

演示项目