The MUI(v5)'s documentation has given this example:
const theme = createTheme({
components: {
MuiButton: {
styleOverrides: {
root: {
// How to use pseudo-class here?
// I've tried this but it doesn't work:
// "&:hover": {
// backgroundColor: "#000"
// }
fontSize: '1rem',
},
},
},
},
});
However, what if I want to add CSS style to the Button when it's hovered (or other pseudo-class states)? Would those be possible with styleOverrides as well?