mui / material-ui

Material UI: Comprehensive React component library that implements Google's Material Design. Free forever.
https://mui.com/material-ui/
MIT License
93.38k stars 32.14k forks source link

Doesn't work theme.breakpoints.down. #29448

Closed DmitriyKushkulov closed 2 years ago

DmitriyKushkulov commented 2 years ago

Hello. EveryBody. Thanks for your Material UI.

I have faced the one issue in theme.breakpoints in material UI latest version.

This is my sample code.

import { makeStyles } from '@mui/styles'; const useStyles = makeStyles((theme) => ({ slickContainer: { width: '100%', margin: 'auto', padding: '0 20px',

  padding: 0,
},

}, }));

Screenshot_1

Please check this issue. But Material UI is very Good, very Peak. Thanks.

mnajdova commented 2 years ago

You probably haven't wrapped your application in ThemeProvider. This is required for @mui/styles after v5. See https://mui.com/styles/basics/#using-the-theme-context