Saltar al contenido

šŸŽ‰ Material UI v5 is out now! Check out the announcement blog post ā†’

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