Dialog
Dialogs inform users about a task and can contain critical information, require decisions, or involve multiple tasks. They appear on top of the page content.
Basic Dialog
This is the dialog content. It can contain text, forms, or any other elements.
Max Width Variants
This dialog has max-width="xs" (444px).
This dialog has max-width="sm" (600px).
This dialog has max-width="md" (960px).
Full Width
This dialog stretches to fill its max-width container.
With Dividers
When content might scroll, use dividers on the content area to visually separate it from the title and actions.
This border helps users see that there is more content above or below when they scroll.
API — me-dialog
| Attribute | Type | Default | Description |
|---|---|---|---|
open | boolean | false | Whether the dialog is visible. |
max-width | xs | sm | md | lg | xl | sm | Maximum dialog width. |
full-width | boolean | false | Stretch to fill max-width. |
full-screen | boolean | false | Full-screen overlay (mobile). |
Events
| Event | Detail | Description |
|---|---|---|
me-close | { reason: 'backdropClick' | 'escapeKeyDown' } | Fired when the backdrop is clicked or Escape is pressed. |
Sub-components
| Element | Attributes | Description |
|---|---|---|
me-dialog-title | — | Dialog heading (1.25rem, 500 weight). |
me-dialog-content | dividers | Scrollable body area. Add dividers for top/bottom borders. |
me-dialog-actions | disable-spacing | Action button row. Add disable-spacing to remove padding/gap. |