Skip to content

Latest commit

 

History

History
56 lines (40 loc) · 1.99 KB

tab.md

File metadata and controls

56 lines (40 loc) · 1.99 KB
filename
/packages/material-ui/src/Tab/Tab.js

Tab

Props

Name Type Default Description
classes object   Override or extend the styles applied to the component. See CSS API below for more details.
disabled bool false If true, the tab will be disabled.
icon node   The icon element.
label node   The label element.
value any   You can provide your own value. Otherwise, we fallback to the child position index.

Any other properties supplied will be spread to the root element (ButtonBase).

CSS API

You can override all the class names injected by Material-UI thanks to the classes property. This property accepts the following keys:

  • root
  • labelIcon
  • textColorInherit
  • textColorPrimary
  • textColorSecondary
  • selected
  • disabled
  • fullWidth
  • wrapper
  • labelContainer
  • label
  • labelWrapped

Have a look at overriding with classes section and the implementation of the component for more detail.

If using the overrides key of the theme as documented here, you need to use the following style sheet name: MuiTab.

Inheritance

The properties of the ButtonBase component are also available. You can take advantage of this behavior to target nested components.

Demos