Dialog
A centred modal over the surface, opened by its trigger slot or by binding open.
Group: Overlays · Kind: native
Preview
Section titled “Preview”open
Platforms
Section titled “Platforms”The same specimen painted by React, SwiftUI, Compose and gpui.




| Prop | Type | Required | Bindable | Description |
|---|---|---|---|---|
title |
string |
– | – | The dialog heading. |
description |
string |
– | – | A muted line under the heading. |
open |
boolean |
– | yes | Whether it shows; bind it to a boolean path. Default false. |
dismissible |
boolean |
– | – | Closes on the backdrop or Escape. Default true. |
Events
Section titled “Events”on.change: runs an action
trigger: one component by idfooter: one component by id
Children
Section titled “Children”many
A2UI basic mapping
Section titled “A2UI basic mapping”The basic catalog’s Modal renders as Dialog.
Built from
Section titled “Built from”A native component: every renderer paints it directly.
Accessibility
Section titled “Accessibility”Role: dialog
dialog (modal)
| Keys | Action |
|---|---|
| – | Opening moves focus to the first focusable child (else the dialog) |
| – | Tab cycles inside the dialog (focus trap) |
Escape |
close when dismissible |
| – | Closing returns focus to the trigger |
Theming
Section titled “Theming”Recipe parts: Dialog/overlay Dialog/content Dialog/title Dialog/description Dialog/footer Dialog/close
Keyed by: dismissible :hover :pressed :focus :disabled :checked :open :selected :invalid :dragover
Related
Section titled “Related”AlertDialog · Drawer · DockCard · Popover · Tooltip · Menu · Toast