withStyles Material UI override

Kevin Kim
1 min readMar 9, 2020

I keep getting tired of looking up old code to override some style.

import FormControlLabel from '@material-ui/core/FormControlLabel'import { withStyles } from '@material-ui/core/styles'export const StyledFormControlLabel = withStyles({  root: {    color: 'red',  },  label: {    textTransform: 'capitalize',  },})(FormControlLabel)

That should do it

--

--