Component

Modal

Dialog overlay using the native <dialog> element. Elevated panel with shadow-md, frosted backdrop, focus-trap, and Escape-to-close. Three sizes.

Interactive demo

Static panel preview (no overlay)

Small modal

A compact confirmation or alert. Max width 400px.

Props

PropTypeDefaultDescription
idstringRequired for JS open/close
titlestringDialog heading (aria-labelledby)
openbooleanfalseSSR open state
size'sm'|'md'|'lg''md'Panel max-width (400/560/760px)
classstringExtra CSS on the panel

Slots: (default) body content · footer action buttons row.
JS: document.getElementById('id').showModal() / .close(). Escape key + backdrop click close it automatically.

Compact size — great for confirmations and simple prompts.

Wide layout for content-heavy panels: data tables, split-views, multi-step forms.

This will cancel the booking for Linda Ārende and cannot be undone.