Overlays and dialogs
Use a menu for nearby commands, a dialog for a brief confirmation, and a Sheet for a temporary task with its own content.
Choose an overlay
| Scenario | Component | Behavior |
|---|---|---|
| Actions, choices, or submenus near a trigger | PopupActionMenu | Takes structured items and caller-owned expanded state. |
| Select a value from a settings row | ItemDropdown | Shows the selected value and opens PopupMenuItem choices. |
| Custom content in a menu surface | PopupMenu | Provides a menu panel with caller-defined content. |
| General anchored content | Popup | Lets the caller define the content and anchor layout. |
| Modal confirmation or short task | Dialog | Provides a cross-platform dialog. |
| Mobile screen or desktop dialog | AdaptiveDialog | Picks a host for the platform. |
| Temporary task, selector, or form | Sheet | Supports bottom and floating presentations, detents, and dismissal options. |
| Android-only bottom dialog | BottomSheetDialog | Uses the Android host. |
| Separate desktop window | SaltDialogWindow | Creates a native desktop window. |
Popup menus
See Popup menus for selection, pointer placement, keyboard behavior, and backdrop setup.
Sheet and Scaffold
Sheet presents a modal task. BottomSheetScaffold integrates a bottom panel into the screen layout and exposes a nestedScrollConnection for coordinating panel and body scrolling.
kotlin
BottomSheetScaffold(
sheetContent = {
Text(text = "Panel content")
}
) {
Text(text = "Page content")
}Backdrop material
Native overlays can have a different coordinate space. Use DisableMaterial and give the content a background if it needs an independent surface. Menus use PopupMenuBackdrop. Choose PopupMenuMaterial.Solid for an opaque menu.