Skip to content

useTabPanel API

API reference docs for the useTabPanel hook. Learn about the input parameters and other APIs of this exported module.

Demos

For examples and details on the usage of this React hook, visit the demo pages:

Import

import useTabPanel from '@mui/base/useTabPanel';

Parameters

NameTypeDefaultDescription
value*number | string
The value of the TabPanel. It will be shown when the Tab with the corresponding value is selected.

Return value

NameTypeDefaultDescription
getRootProps() => { 'aria-labelledby': string | undefined hidden: boolean id: string | undefined }
Resolver for the root slot's props.
hiddenbooleanfalse
If true, it indicates that the tab panel will be hidden.