@mui/codemod
Version:
Codemod scripts for Material UI.
18 lines (17 loc) • 500 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Component = void 0;
var _styles = require("@mui/material/styles");
const Component = exports.Component = (0, _styles.styled)('div')(({
theme
}) => ({
backgroundColor: theme.alpha((theme.vars || theme).palette.primary.main, 0.5),
'&:hover': {
backgroundColor: theme.lighten(theme.palette.primary.main, 0.2)
},
'&:active': {
backgroundColor: theme.darken(theme.palette.primary.main, 0.2)
}
}));
;