Root
component
120 | collapsible
is boolean, false means you don't want this
130 | feature., it will hide menu icon at the bottom of the nav
131 | collapsedWidth
is number or object (mediaQuery pattern)
134 | means the width after the nav collapsed.
135 | heightAdjustmentDisabled
is boolean, true means you
147 | don't want this feature :(
148 | initialAdjustmentHeight
is number or object (mediaQuery
151 | pattern)
152 | heightAdjustmentSpeed
the speed of snapping (ms) the
155 | lower, the faster but drop performance
156 | autoCollapsedDisabled
is boolean, true means you don't
173 | want this feature :(
174 | collapsedBreakpoint
is string one of ['sm', 'md',
177 | 'lg']. (sm = 600px, md = 960px best!, lg=1280px)
178 | ThemeProvider
is a must since mui-layout need to access{' '}
232 | breakpoints
in theme.
233 | {`\{ "sm": true \}`}
means you want this behavior to be
290 | true in tablet. Luckily, you dont have to specify all screen key. if
291 | there is no key let say "md"(desktop), it will use the smaller
292 | specified value that it can found. If you want to apply to all screen,
293 | don't use object pattern.
294 | Root
component
312 | Root
is just a Provider, it does not return any DOM on the
26 | screen.
27 |