Did you know?dyk.si

Modal vs. Drawer vs. Bottom Sheet

All three sit above the page and dim what’s behind. They differ by placement and task size.

Modal Dialog

A modal is centered, for a quick decision that must happen now, like confirming a delete.

Hamburger Menu (Navigation Drawer)

A drawer slides in from the side, usually for navigation or editing longer details without leaving the page.

Bottom Sheet

A bottom sheet rises from the bottom edge and belongs to mobile: the thumb reaches it and a swipe dismisses it.

Rule of thumb: A decision is a modal, navigation is a drawer, quick mobile choices are a bottom sheet.

When to use each one

Modal Dialog

A window centered over the page that blocks everything behind it until you respond.

When to use it

For a decision needed right now: confirming a delete, or a short form.

Common mistake

Don’t stack modals, and don’t put long scrolling content inside one.

Hamburger Menu (Navigation Drawer)

The three-line button and the side navigation panel it slides open.

When to use it

When there are more sections than the screen can show.

Common mistake

With only three to five sections, a bottom bar is clearer and faster.

Bottom Sheet

A panel that slides up from the bottom edge with options or details; drag it down to dismiss.

When to use it

On mobile for quick choices: share, filter, or item details.

Common mistake

On desktop a popover or modal usually fits better.

Names in code

Modal DialogHamburger MenuBottom Sheet
HTML/CSS<dialog> + showModal()aria-expanded + aria-controls<dialog> + CSS transform
React<Dialog> — Radix / shadcn<Sheet side="left"><Drawer> — vaul
Jetpack ComposeAlertDialog / DialogModalNavigationDrawerModalBottomSheet
SwiftUI.alert / .confirmationDialogNavigationSplitView.sheet + .presentationDetents

The full guide

The difference in one paragraph

A Modal Dialog is an interruption: it takes the center of the screen, dims the page, and holds the user until one question is answered or one short task is done. A Navigation Drawer is a place, not a question: the panel behind the Hamburger Menu slides in from the side, lists the product's sections, and leaves once the user picks one. A Bottom Sheet is a tray tied to what the user just touched: it rises from the bottom edge within thumb reach and holds a few actions, a filter set, or one item's details. The modal interrupts, the drawer relocates, the sheet extends the current screen.

How to tell them apart on screen

A Modal Dialog floats in the middle with margins all round and a capped width, usually 400 to 600 px on desktop. A Navigation Drawer hugs the left edge (right in RTL layouts), runs full height, and is a narrow column of links. A Bottom Sheet is glued to the bottom edge, spans a phone's full width, and has rounded top corners and a drag handle.

The modal fades in from a button or an event, closes with its own buttons or Esc, and always blocks the page. The drawer slides in from the Hamburger Menu button or an edge swipe, closes when you pick a link or tap the scrim, and blocks only on narrow screens; on wide ones it usually stays open as a sidebar. The sheet slides up after a tap, closes with a drag down, a scrim tap, or a close button, and often snaps to half and full height. On desktop nobody is holding the screen, so a popover or modal takes the sheet's job.

Which one to choose

Confirming a delete: Modal Dialog. The action is destructive and needs an explicit yes or no, and a centered box with Cancel focused by default is hard to dismiss by accident. Natively: AlertDialog or confirmationDialog.

Moving between eight or more sections of an app: Navigation Drawer. A bottom bar runs out of room after five items; a drawer scales to grouped lists.

Filtering a product list on a phone: Bottom Sheet. The filters belong to the list, so a half-height sheet lets the user adjust them while the results update behind it.

Settings that apply instantly: not a Modal Dialog, which implies commit or cancel. Use a Bottom Sheet on a phone and an inline panel on desktop.

Mistakes teams make

Using a Modal Dialog for a long, scrolling, multi-step flow. Fix: a page or a full-screen dialog; keep the modal for one decision.

Hiding primary navigation behind a Hamburger Menu on desktop where there is room for it. Fix: a visible top bar or sidebar on wide screens; keep the Navigation Drawer for narrow ones.

Making a Bottom Sheet closable only by dragging, which strands keyboard users and anyone who misses the gesture. Fix: a close button, a scrim tap, and Esc.

Letting a sheet that holds a form be swiped away with unsaved input. Fix: disable swipe-to-dismiss while the data is dirty, or ask before discarding.

Accessibility and keyboard notes

A Modal Dialog needs role dialog, aria-modal true, and aria-labelledby pointing at its title. Focus moves inside on open, stays trapped, and returns to the trigger on close; Esc closes it. The native dialog element with showModal() gives you all of that for free.

The Hamburger Menu button needs an accessible name, aria-expanded that flips, and aria-controls pointing at the panel. Move focus to the first link on open and back to the button on close. A drawer that stays open on desktop is a nav landmark, not a dialog.

A modal Bottom Sheet follows the same rules. Its drag handle is not keyboard reachable, so a close button is mandatory, and screen readers should hear the sheet title on open. Make the handle and close button at least 44 points on iOS or 48 dp on Android, and skip the slide animation under reduced motion.

How to ask a coding agent for it

Name the element, the library, how it opens and closes, and the focus rules; Claude Code will usually get it right first time.

Add a Modal Dialog with the native dialog element and showModal() to confirm deleting a project; focus Cancel by default, close on Esc, and return focus to the Delete button.

Below 768 px, replace the top navigation with a Hamburger Menu that opens a Navigation Drawer from the left, with aria-expanded and aria-controls on the button and focus moved to the first link.

Add a ModalBottomSheet with a drag handle for the product filters, with half and full detents, a Done button that applies and closes, and swipe-to-dismiss disabled while filters are unsaved.

Frequently asked questions

Is a bottom sheet a modal?

On phones, usually yes: a modal Bottom Sheet dims the page and traps focus like a Modal Dialog. A standard sheet, like the card at the bottom of a map, leaves the page interactive.

Can a drawer be non-modal?

Yes. On wide screens a Navigation Drawer often stays open as a sidebar with no scrim and only becomes modal when space is tight.

Modal or bottom sheet on mobile?

A Modal Dialog if the user must answer a question; a Bottom Sheet if the user is choosing among options or viewing one item's details.

Is the hamburger menu the same as the navigation drawer?

The Hamburger Menu is the three-line button; the Navigation Drawer is the panel it opens. Teams use either name for the pair.