How to make MUI Sidebar switch to Drawer mode on tablet devices? #4439
Unanswered
Thanawit007z
asked this question in
Help and support
Replies: 2 comments 4 replies
-
|
We're in the process of adding a prop to the DashboardLayout which will allow controlling the sidebar's collapsed state: #4406 You should be able to detect any screen size and set the collapsed mode with that prop |
Beta Was this translation helpful? Give feedback.
2 replies
-
|
We could maybe make the mobile breakpoint overridable with a new prop in In the meantime, if it doesn't cause other issues, maybe you can try changing breakpoint widths in the theme so that the the drawer navigation shows at a larger width. Maybe something like in this example: const exampleTheme = createTheme({
breakpoints: {
values: {
xs: 0,
sm: 600,
md: 1200,
lg: 1200,
xl: 1536,
},
},
}); |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to know how to make the sidebar in Dashboard Layout switch to Drawer mode for tablet-sized devices (e.g., iPad), similar to how it works on mobile devices. Currently, it only switches to Drawer mode when the screen size is small (mobile). How can I achieve this for tablet-sized screens as well?



Ipad
mobile
Beta Was this translation helpful? Give feedback.
All reactions