A drawer is a component that allows for content to be hidden until triggered at which point the content will slide from either the left or right of the viewport and block all other page content, similar to a dialog.
- Footer (optional)
The header should give the user a sense of what the drawer content will contain.
The content area holds the main information for your drawer such as text, form fields, or a gallery. Your content should not contain any cards.
There is no default padding in the content area so that lists and other common UI components don’t need to be reset to display properly. The content area should also span as much of the visible area as possible, given the space occupied by the header and footer.
A drawer may contain an optional footer. It should be fixed to the bottom of the drawer so that it’s contents are always visible, even if the content area takes up a tremendous amount of space.
The backdrop should be created when a drawer is opened and destroyed when the drawer is closed.
Style specifications are available to inspect via Abstract. The following link will take you to their web-based interface.
The following table lists the theme properties used to style this component and any variations as well as a sample value.
A full list of properties used within the design system—as well as general usage guidelines—is available on the Theme properties page.
Examples of each theme property may be referenced by clicking a property name in the “property” column.
Background fill for menu drawer