Dialog

Modal dialog using a screen-share friendly overlay with accessible dialog semantics.

Basic Dialog

With Form

Dialogs work great for form inputs.

Form Dialog

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.

Placements

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.

Are you sure?