Skip to content

Drawer usage guidelines

A drawer is a panel that slides in from the right side of the screen. Use drawers for supplemental info and actions related to the main content.

  • To display supplemental info and actions without navigating away from the page.
  • To collect user input through short forms (e.g., editing an item).
  • To display a list of actions that affect the screen’s content, such as filtering data.
  • For short content that is related to a specific part of the main layout, use a tooltip or popover instead.
  • For content that can be shown inline, use a disclosure.
  • For long or complex workflows, use a dedicated page.
  • For critical decisions or focused interactions that require user attention, use a modal dialog.
ValueUse cases
Small (default)For filters or simple item details.
MediumFor item details that require more space or include editing and form inputs.
LargeFor more complex forms or multi-section content. (Use with caution.)

Drawers are placed at the right edge of the screen, spanning the full height of the page. The drawer is placed on 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.

Drawers are opened by a button or icon button. The trigger should clearly communicate what the drawer will show.

If the drawer controls visible state on the page (e.g., filters), the trigger should reflect that state. This can be done through:

  • A visual indicator (e.g., badge showing number of active filters)
  • A label change (e.g., “Filter” → “Filter (3)”)
  • Styling that signals an “active” state

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

Be aware that when the drawer contains a form with unsaved changes, users may lose progress if they accidentally dismiss it. In these cases, it’s recommended to show a confirmation dialog before closing, to prevent accidental data loss.