V

Volodymyr

3 min

Sheets, dialogs, menus, and popovers are overlays

Sheets, dialogs, menus, and popovers used to be separate piles for me. They interrupt the same screen, so the split was a filing habit.

You open a ticket that says add a confirmation. By noon it is a modal. By Friday it is a bottom sheet because the form grew. The overlays on that screen keep changing names while the job stays put.

A sheet and a modal interrupt the same way

The screen underneath is still there. Focus moves up. Dismiss has to work. That is true for a React Native modal, a dialog, and a bottom sheet. The chrome changes. The job does not.

I used to file them apart because the APIs look different. Modal is a built-in. A sheet is usually a library with a snap point and a drag handle. A React Native dialog often sits centered with a scrim. Once you watch enough of them side by side, the shared problem is obvious: temporary focus above the current route, without losing the route.

The system version exists too. A bottom sheet for iOS built on Expo UI is the OS sheet, which is a different contract from a JS sheet you style yourself.

Menus are overlays with a different trigger

A long-press context menu. A dropdown menu under a chevron. A plain menu anchored to a button. A React Native popover that points at a control. None of those replace the screen. They borrow a corner of it, then leave.

That is why I keep menu, context menu, dropdown menu, and popover next to modal and dialog instead of dumping them into a generic inputs pile. A custom context menu solves the same interruption problem as a sheet, with a press-and-hold instead of a button.

Which overlay to reach for

A decision with two buttons. Dialog. Centered, a scrim, one question. If the user can ignore it, it should not be a dialog.

A task with more than one field. Bottom sheet. It keeps the route visible and grows with the form, and it inherits the keyboard fight the moment a field takes focus.

A choice about one thing on screen. Menu or popover. It anchors to the control it describes and closes on the next tap.

A whole new step. Not an overlay. Push a screen. A modal that hosts three screens of navigation is a route wearing a costume.

The keyboard does not care what you named it

Put a form inside a bottom sheet and you inherit the keyboard fight. Put the same form inside a dialog and you inherit it again. Both have to clear the keyboard, keep the focused field visible, and dismiss cleanly when the user taps outside. The bottom sheet post covers the snap points and the scroll that fight over the same finger.

If you only search modal, you miss the sheet that already solved the keyboard. If you only search bottom sheet, you miss the dialog that already handled nested dismiss. The name in the ticket is a poor search key for the motion you need.

Name the job, then the chrome

Write down whether the overlay asks, collects, or points, then look at the chrome that fits. Centered decisions and full-screen takeovers start in the Modal facet.