Skip to content

🎉 v5 beta is out! Head to the v5 documentation to get started.

TabContext API

The API documentation of the TabContext React component. Learn more about the props and the CSS customization points.

Import

import TabContext from '@material-ui/lab/TabContext';
// or
import { TabContext } from '@material-ui/lab';

You can learn more about the difference by reading this guide.

Props

Name Type Default Description
children node The content of the component.
value* string The value of the currently selected Tab.

The component cannot hold a ref.

Any other props supplied will be provided to the root element (native element).

Demos