Dialog
Modal dialog using a screen-share friendly overlay with accessible dialog semantics.
Are you sure?
This action cannot be undone.
This will permanently delete your account and all associated data.
With Form
Dialogs work great for form inputs.
Edit Profile
Make changes to your profile here.
Placement
placement
says where the panel sits. All four are the same div-based dialog: focus is trapped,
Escape and the backdrop close it. Below 640 px (768 px for
side
) three of them become a bottom sheet.
Centred card
The default. Best for a question or a short form.
Escape, the backdrop or Close all dismiss it.
Filters
Docked right and full height from 768 px; a bottom sheet below. size sets the width.
Share this page
A bottom sheet on phones, a centred card above.
Why is this blocked?
A popover placement hangs under its anchor with the page visible behind it, from 640 px. Use
SutraUI.Popover
for a small card beside a button.
Notes
- Uses a div-based overlay instead of the browser top layer, so dialogs remain visible in screen-sharing tools.
- Focus is automatically trapped within the dialog.
- Press Escape or click the backdrop to close.
- ARIA attributes are automatically set based on title and description slots.