TabPanelUnstyled API
导入
import TabPanelUnstyled from '@mui/base/TabPanelUnstyled';
// 或
import { TabPanelUnstyled } from '@mui/base';
属性
原生(Native) 组件的属性也是可用的。
名称 | 类型 | 默认值 | 描述 |
---|---|---|---|
value* | number | string | The value of the TabPanel. It will be shown when the Tab with the corresponding value is selected. | |
children | node | The content of the component. | |
component | elementType | The component used for the root node. Either a string to use a HTML element or a component. | |
slotProps | { root?: func | object } | {} | |
slots | { root?: elementType } | {} |
ref
则会被传递到根元素中。