shadcn Dialog on Base UI, Maia preset, beside the design-system Modal. A window over the page for a task that needs focus: edit, share, read. Evantis buttons, a named close, the scrim at 50%.
Demo
Title says what you are doing; the description says when you are done.
Fields are design-system Inputs with their label above, 48px for caregivers.
Cancel is the outlined secondary button; the main action is primary, Title Case, starting with a verb.
The form lives inside the dialog, so Save Changes submits it and closes the window.
Custom close button
A dialog that only informs can end with a single Close button.
Read-only values keep their label; links and codes are mono.
No close button
Only for a message that needs no answer. Escape and selecting outside still close it.
Say how to close it in the description.
Sticky footer
Long content scrolls inside the dialog; the buttons stay in view.
Keep the scrollbar visible so people know there is more.
Scrollable content
Reading-only content can scroll with no footer; the close button stays at the top right.
Every dialog closes with Escape and returns focus to the button that opened it.