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>
);
}