How change active tab color in React material-ui?
Well, you have two options:
You could customize the theme:
http://www.material-ui.com/#/customization/themes
But the easiest way would be using the inkBarStyle
property.
You can see it in the docs..
Example:
<Tabs inkBarStyle={{background: 'blue'}}>...
@Risa's solution works just fine and should be the accepted answer. My example of her explanation looks like this:
<Tabs
fullWidth
centered
classes={{
indicator: classes.indicator
}}>
<Tab />
<Tab />
</Tabs>
and the styles:
const styles = theme => ({
indicator: {
backgroundColor: 'white',
},
})
You can try this material UI latest version support TabIndicatorProps through which you can pass style key.
<Tabs TabIndicatorProps={{style: {background:'ANY_COLOR'}}}>......