# 4.5 Choose the container by task size

> Chapter 4, Navigation and structure. Section: Overlays and containers. Guide: https://www.designguide.dev/md/04-navigation-and-structure.md#choose-the-container-by-task-size

Default · Adapts

**Rule:** Open a sheet for a choice or a short task, push a page to go deeper, and use a dialog to block.

**Wide screen:** On a wide screen, use a popover or side panel for a choice, a detail pane for depth, and a centered dialog. (Triggers: Width 840+, Fine pointer)

**Why:** The container sets the size of the next step: a sheet keeps the screen visible, a page changes the place.

- Push a page for a detail view with its own back arrow.
- Use a sheet for 1 to 5 options or 1 to 2 fields.
- Use a dialog only to confirm an irreversible action ([8.12](https://www.designguide.dev/r/confirm-only-what-cannot-be-undone.md)).

| Task | Small screen | Medium | Wide screen | Use it when |
| --- | --- | --- | --- | --- |
| Pick from a few options | Sheet | Centered sheet | Popover at its control | 1 to 5 options |
| Do a short task beside the content | Sheet | Popover | Side panel | The content must stay in view |
| Go deeper | Pushed page | Pushed page | Detail pane | The item has its own content |
| Finish or confirm first | Full-screen dialog | Centered dialog | Centered dialog, width capped | The person must decide first |

**Picture:** Do: A sheet holds 3 options. The list stays in view. Don't: A new page for 3 options hides the list. Size pair (Phone, 375; Window, 1280): The same choice opens a sheet on the phone and a popover at its control in the window.

**See:** [8.12 Confirm only what cannot be undone](https://www.designguide.dev/r/confirm-only-what-cannot-be-undone.md)
