Skip to content

Commit

Permalink
[docs] Fix outdated responsive styles docs in MediaQuery
Browse files Browse the repository at this point in the history
  • Loading branch information
rtivital committed Mar 8, 2023
1 parent 7f4427b commit 8b1350a
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions docs/src/docs/core/MediaQuery.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -48,20 +48,22 @@ To change these values wrap your application with MantineProvider and set `break
```tsx
import { MantineProvider } from '@mantine/core';

function YourApp() {
function Demo() {
return (
<MantineProvider
withGlobalStyles
withNormalizeCSS
theme={{
breakpoints: {
xs: 500,
sm: 800,
md: 1000,
lg: 1275,
xl: 1800,
xs: '30em',
sm: '48em',
md: '64em',
lg: '74em',
xl: '90em',
},
}}
>
Hello World
<App />
</MantineProvider>
);
}
Expand Down

0 comments on commit 8b1350a

Please sign in to comment.