Decision guide · 02

Sidebar vs. Drawer

The short answer

A sidebar stays in the page layout. A drawer slides in for a short time and may cover or push the page.

Use a sidebar for tools or links people use often when there is room. Use a drawer for less common tasks or small screens, and make it easy to close.

01

See what each pattern does

Try each example. Then read about the job it is made to do.

Sidebar Source List

↗

A Sidebar Source List is a tree-like list at the side of a window. The chosen source or group sets what appears in the main area.

Sidebar Source List
Design systemUpdated just now
Foundations24 items
Components68 items
Patterns31 items
A photo library lists Library, Favorites, albums, and shared groups. The chosen collection fills the detail area.
Use it when
Use it when stable groups or places control the main view and people return to them often while they work.
Do not use it when
Avoid it for a one-time checklist or a short, flat action list. Each category should truly change the main content source.
Name used in code
NSOutlineView source-list style / SwiftUI NavigationSplitView
Open the full guide

Drawer

↗

A drawer slides in from a screen edge. Part of the page behind it stays visible.

Preview
V
DrawerDialog + edge positioning

A drawer slides in from a screen edge. Part of the page behind it stays visible.

Opens from the trailing edge. The page stays visible.
PreviewDuplicateArchive
Drawerdrawer
Select an order to open its details from the right. The order list stays visible behind them.
Use it when
Use it for details or a smaller second task when keeping the current place helps.
Do not use it when
Never squeeze a long workflow with many steps into a narrow drawer.
Name used in code
Dialog + edge positioning
Open the full guide
02

Quick comparison

UI patternBest forNot forName used in code
Sidebar Source List Use it when stable groups or places control the main view and people return to them often while they work. Avoid it for a one-time checklist or a short, flat action list. Each category should truly change the main content source. NSOutlineView source-list style / SwiftUI NavigationSplitView
Drawer Use it for details or a smaller second task when keeping the current place helps. Never squeeze a long workflow with many steps into a narrow drawer. Dialog + edge positioning
03

Before you ship

  1. 01

    Write down what the person needs to do.

  2. 02

    Test the keyboard, focus, touch, zoom, loading, empty, and error states.

  3. 03

    Make sure people can get the same information without hover or motion.

  4. 04

    Test with real content on both small and large screens.

04

Comparison request you can copy

Copy this when your team needs help choosing between the patterns.

Choose the best pattern from Sidebar Source List, Drawer for our real user flow. Use this rule: A sidebar stays in the page layout. A drawer slides in for a short time and may cover or push the page. Write down the task, amount of content, and cost of stopping the flow. Check keyboard, touch, loading, error, and reduced-motion behavior. Explain your choice, then build the smallest accessible version with the project's design system.

Copy it yourself

The browser could not copy this. Select the request below and copy it yourself.