I've customized this tab to have my desired style:
import { withStyles } from "@material-ui/core/styles";
const StyledTab = withStyles((theme) => ({
root: {
backgroundColor: "yellow",
},
}))((props) => {
const { shouldSetBackgroundColorToOrange } = props;
return <Tab {...props} />;
});
Here is how it's implemented:
<StyledTab label={"Room"} shouldSetBackgroundColorToOrange={true} />;
I want to change its color to orange depending on the value of the shouldSetBackgroundColorToOrange
prop.
Unfortunately, I haven't been able to figure out a way to achieve this.