# Drawer and Navigation Drawer

A drawer is an edge-anchored panel for supplementary content or actions; a navigation drawer specifically contains destinations and may be persistent or temporary.

- Type: artifact
- Domain: Experience & interface
- Level: Foundational
- Last reviewed: 2026-10-06
- Original: [Soroush’s Product Wiki](<https://wiki.soroush.uk/topic/drawer-and-navigation-drawer/>)

## What it means

A drawer is a panel that enters from an edge of the interface and shares or overlays the main view. A navigation drawer contains top-level or hierarchical destinations. Drawers may stay visible on wide screens, collapse to a narrower form, or open temporarily with modal behavior on compact screens.

## Why it matters

Drawers can preserve context and adapt navigation across viewport sizes, but hidden destinations and unclear modality increase interaction cost. Explicit responsive and dismissal behavior keeps the same information architecture understandable across devices.

## When to use it

Use a navigation drawer for several stable destinations that benefit from labels or grouping, and a contextual drawer for supplementary work that should not replace the main page. Prefer visible navigation for a small critical set, and a full page for long or deeply nested tasks.

## How it works

1. Define the drawer’s purpose, hierarchy, and whether its contents navigate or act on the current view.
2. Choose persistent, collapsible, or temporary behavior for each meaningful viewport range.
3. Provide a clearly labeled opener and visible current-destination state where navigation is involved.
4. For modal drawers, manage initial focus, outside interaction, Escape, dismissal, and focus return.
5. Test content reflow, long labels, zoom, scrolling, touch gestures, and state preservation across resizing.

## A practical example

A project-management app shows a persistent labeled navigation drawer on desktop and a menu button that opens the same destinations in a modal drawer on phones. The active project area remains indicated, and closing the temporary drawer returns focus to its opener.

## Where it breaks

A temporary drawer hides navigation and adds a step to every switch. Persistent drawers consume width, nested drawers can obscure hierarchy, and edge-swipe gestures may conflict with browser or operating-system navigation.

## Common mistakes

- Using a drawer as a catch-all for unrelated navigation, settings, and page actions.
- Hiding essential destinations at sizes where visible navigation would fit.
- Failing to distinguish overlay behavior from a panel that resizes the main view.
- Relying on an unlabeled hamburger icon or swipe gesture as the only opener.

## Sources

1. [Navigation drawer](<https://m3.material.io/components/navigation-drawer/overview>) — Material Design · Institutional design system
2. [Sidebars](<https://developer.apple.com/design/human-interface-guidelines/sidebars>) — Apple · Institutional guideline

## Related topics

- [Navigation Design](<https://wiki.soroush.uk/topic/navigation-design/>)
- [Modal Dialog](<https://wiki.soroush.uk/topic/modal-dialog/>)
- [Responsive Design](<https://wiki.soroush.uk/topic/responsive-design/>)
