Dialogs
Modal dialogs and popups for confirmations, definitions, and interactive content. Built on native <dialog> for accessibility.
Native dialog
Base styling for modal dialogs using native <dialog> elements.
Basic dialog
Usage
Dialogs use native <dialog> elements with layout primitives:
.dialog- Visual styling (backdrop, shadow, radius).imposter-contain- Size constraints (width, max-width).dialog-close- Close button styling- Use
.box,.stack,.clusterfor internal structure
Popup dialog
The <popup-dialog> Web Component wraps any trigger element.
Confirmation
Info panel
Layout primitives are simple, reusable CSS patterns for common spatial relationships.
Footnotes
A key finding
Attributes
Configuration options for <popup-dialog>. Additive by design—no footer unless you add buttons.
title- Modal title (optional)body- Body text contentconfirm-label- Adds a confirm button with this labelcancel-label- Adds a cancel button with this labelconfirm-href- URL to navigate on confirmconfirm-variant- Button style: "accent" (default) or "red"
Slots
Named slots for custom content.
- default - The trigger element (button, link, text)
slot="body"- Custom HTML body contentslot="actions"- Custom action buttons