Reputation: 921
So basically, this is what I want to do.
indicatorClassName
doesn't work for me and the indicator from codesandbox doesn't change at all. I looked through the component's implementation , and found indicatorStyle
, but it didn't help neither.
Any ideas?
Upvotes: 3
Views: 3811
Reputation: 81370
You can use the sx
prop in MUI v5:
<Tabs
{...}
TabIndicatorProps={{
sx: {
height: 5,
},
}}
>
Or if you want to set it in createTheme()
:
const theme = createTheme({
components: {
MuiTabs: {
styleOverrides: {
indicator: {
height: 3,
},
},
},
},
});
Upvotes: 4
Reputation: 731
<Tabs ... classes={{indicator:classes.indicator}} >
Upvotes: 6