I try to use createBreakpoints method:
import createBreakpoints from "@material-ui/core/styles/createBreakpoints";
import { createTheme } from "@material-ui/core";
const breakpoints = createBreakpoints({});
const theme = createTheme({
overrides: {
MuiTab: {
root: {
[breakpoints.up("md")]: {
minWidth: "200px",
backgroundColor: "yellow",
},
},
},
},
});
export default theme;
It shows an error: Module not found: Can't resolve '@material-ui/core/styles/createBreakpoints'
I want to create a breakpoint rule in the createTheme method. How can I do that?
The issue is on Version 5.
Thanks.