TabContext API
想要学习更多组件属性和 CSS API,可以查阅 React TabContext 组件的 API 文档。
导入
import TabContext from '@mui/lab/TabContext';
// 或
import { TabContext } from '@mui/lab';属性
原生(Native) 组件的属性也是可用的。
| 名称 | 类型 | 默认值 | 描述 |
|---|---|---|---|
| value* | string | The value of the currently selected Tab. | |
| children | node | The content of the component. |
组件无法持有 ref。