Drawer
Navigation drawers provide quick access to other destinations in your app without removing the user out of context.
Introduction
<Drawer invertedColors />
Playground
Basic
The navigation drawers can toggle open or closed. Closed by default, the drawer opens temporarily above all other content until a section is selected.
The Drawer can be cancelled by clicking the overlay or pressing the Esc key.
It closes when an item is selected, handled by controlling the open
prop.
Press Enter to start editing
Transition
Set these CSS variables to the sx
prop to the transition of the drawer:
--Drawer-transitionFunction
: the transition function, default isease
.--Drawer-transitionDuration
: the duration of the transition, default is0.3s
.
Filter drawer
To create an inset panel, set the background and padding of the Drawer's content slot and then create a full height wrapper using Sheet or Box component.