Skip to content

Drawer usage guidelines

A drawer is an overlay element which blocks interaction with outside elements. It can be used to focus the user’s attention on a specific subtask.

  • To display additional content or settings without navigating away from the page.
  • To capture user input for a short interaction, like changing a setting.
  • For content that can be shown inline, use a disclosure.
  • For long or complex workflows, use a dedicated page.
ValueUse cases
SmallFor short information or quick inputs (1-2 lines of text).
MediumStandard drawer for most actions, including forms and decisions.
LargeWhen more content is needed, like previews, detailed forms, or multiple fields.

Drawers are positioned to the side of the screen, and placed on top of a darkened overlay to call the user’s attention to the drawer.

On smaller devices, drawers take up all available space regardless of the declared size.

Drawers can contain any other components. Design best practices should continue to be followed within a drawer.

Drawers can contain actions for the user to take. These actions are displayed at the bottom of the drawer. The example below shows a drawer with actions:

  • Use clear, concise, and distinct titles that make it obvious what the drawer contains.
  • Use clear labels for action buttons and links.
  • If the content gets unreasonably long or space becomes an issue, consider using a different solution.

Users can close the drawer via the close button in the top right, clicking outside, or pressing the Escape key.