Drawer

A panel that slides in from an edge and keeps the page behind it visible, for work that is a detour rather than a new destination.

Anotomy

Structure of the drawer and how its internal parts are composed. These are the drawer's semantic parts, so they are also what the classNames and styles objects accept. The drawer renders in a portal, so these keys are how you reach it.
Drawer anotomy
NameDescription
1sectionThe panel that slides in: background, size and shadow. placement and size set it here.
2headerThe row holding the title, the extra and the close button.
3titleThe heading, from title. It takes the free width.
4extraControls at the end of the header, from extra. Usually the panel's main actions.
5closeThe close button, drawn when closable is set.
6bodyThe drawer's children, in the scrolling area between the header and the footer.
7footerThe row at the bottom, from footer. It only renders when footer is set.
8rootThe fixed layer over the whole page that holds the mask and the panel.
9maskThe dimmed layer over the page, behind the panel. mask changes or turns it off.
10draggerThe strip on the panel's inner edge that resizes it, when resizable is set. It takes the brand color while you hover it.