useTabPanel API
Demos
For examples and details on the usage of this React hook, visit the demo pages:
Import
import useTabPanel from '@mui/base/useTabPanel';Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| value* | number | string | The value of the TabPanel. It will be shown when the Tab with the corresponding value is selected. |
Return value
| Name | Type | Default | Description |
|---|---|---|---|
| getRootProps | () => { 'aria-labelledby': string | undefined hidden: boolean id: string | undefined } | Resolver for the root slot's props. | |
| hidden | boolean | false | If true, it indicates that the tab panel will be hidden. |