Confirmation
Your changes won't be saved.
<cad-modal>
Focus on a decision or a short form. The rest of the page stays inactive until it closes.
You've made changes to this review.
Save your progress before leaving?
Open an example to try it.
Your changes won't be saved.
This action cannot be undone.
Add text, forms, and buttons through slots. Use tone="danger" for destructive decisions; it changes the warning icon and title color.
<cad-modal>Provide heading or a title slot. Focus stays inside the dialog and returns to the opener on close. Escape closes it; cad-modal-close reports the return value.