import { makeStyles } from "@material-ui/core/styles";
import Switch from "@material-ui/core/Switch";
const useStyles = makeStyles({
classForDisabled: {
// ...your css...
}
});
export default function App() {
const styles = useStyles();
return (
<div className="App">
<Switch classes={{ disabled: styles.classForDisabled }} disabled={true} />
</div>
);
}
.tabs {
display: flex;
flex-direction: column;
width: 100%;
}
.tabs__item {
width: 80%;
}