Sheet
A panel that slides in from any edge of the screen — filters, detail views and secondary forms. Use it when the person still needs the context of the page behind.
Purpose
A Sheet keeps the page visible behind it, which is what separates it from
Dialog. Set the edge with side: top, bottom, left or
right.
Sides
All four edges are supported; the preview shows three. top mirrors bottom — a full-width
panel sliding down from the upper edge. left and right are width-capped side panels;
right is the default.
Structure
| Property | Value |
|---|---|
| Panel | --background fill, --shadow-16, 1px border on the inner edge |
| Overlay | #181c32 at 50% with a slight blur |
| Sides | side: top, bottom, left or right (default right) |
| Width | left/right: 75% of the viewport up to 384px; top/bottom: full width |
| Padding | 24px |
| Title | 18px / Inter 600 |
| Motion | 300ms slide from the chosen edge, ease-in-out |
Best practices
Do
- Use a sheet when the page behind is the context — filters, secondary detail; a self-contained task is a Dialog.
- Keep side sheets at the default width — the 384px cap exists so the page stays readable behind.
- Pair the primary action with a Cancel wired through
SheetClose.
Don't
- Open a sheet from inside another sheet or dialog — flatten the flow instead.
- Widen a side sheet to most of the viewport; at that point it is a page.
- Use it to confirm destructive actions — that is AlertDialog.
Accessibility & keyboard
- Focus is trapped inside while open and returned to the trigger on close.
- Give every sheet a
SheetTitle— it is what screen readers announce. - The × button in the top corner carries a screen-reader-only "Close" label.
- Keyboard: Esc closes; Tab cycles within the panel.
Alert dialog
A confirmation that must not be dismissed by accident. Unlike Dialog it cannot be closed by clicking the overlay or pressing Esc — the person has to choose. Use it for every destructive or irreversible action.
Popover
A lightweight surface anchored to its trigger, for a small form or a snippet of contextual content. Unlike a tooltip it can hold interactive controls.