Skip to content

Dialog

Modal and drawer dialog with backdrop, Escape key close, and footer slot.

<!-- Modal -->
<reke-dialog heading="Confirm" open>
<p>Are you sure?</p>
<div slot="footer">
<reke-button variant="ghost">Cancel</reke-button>
<reke-button variant="primary">OK</reke-button>
</div>
</reke-dialog>
<!-- Drawer -->
<reke-dialog heading="Settings" variant="drawer" position="right" open>
<p>Drawer content</p>
</reke-dialog>
PropertyTypeDefaultDescription
openbooleanfalseOpen/close state
headingstring''Dialog title
variant'modal' | 'drawer''modal'Display mode
position'right' | 'left''right'Drawer position
SlotDescription
defaultDialog body content
footerFooter with action buttons
EventDetailDescription
reke-close{}Fired when dialog closes
MethodDescription
show()Opens the dialog
close()Closes the dialog