# Dialog
<button type="button" onclick="dialog.showModal()"> OptionalHTMLDialogElement.showModal() method.<dialog class="dialog" id="{ DIALOG_ID }">aria-labelledby="{ TITLE_ID }" and aria-describedby="{ DESCRIPTION_ID }" when title and description are present. Add width utilities to the inner <div> when a dialog needs a custom size. The macro also adds backdrop-click close handling.
<div><header> Optional<h2 id="{ TITLE_ID }">aria-labelledby.<p id="{ DESCRIPTION_ID }"> Optionalaria-describedby.<section> Optional<footer> Optional<button type="button" onclick="this.closest('dialog').close()"> Optional<form method="dialog">.Anyone who has this link will be able to view this.
This dialog doesn't have a close button in the top-right corner.
This is a dialog with scrollable content.
قم بإجراء تغييرات على ملفك الشخصي هنا. انقر فوق حفظ عند الانتهاء.