ReadonlyariaAccessible label for the dialog.
ReadonlyclosedEmitted when the dialog is closed.
ReadonlycloseWhether clicking the backdrop closes the dialog.
ReadonlycloseWhether pressing Escape closes the dialog.
ReadonlyopenWhether the dialog is open. Supports two-way binding.
A declarative dialog component built on the native
<dialog>element.Provides header / body / footer content slots. Open and close it via the
opentwo-way binding or by callingshow()/close().When to use
UIDialogvs ModalServiceUIDialogUIDialog[(open)])UIDialogModalRef.closed)Rule of thumb: reach for
UIDialogwhen you own the template and the dialog lives alongside its trigger. Reach for ModalService when the dialog must be spawned dynamically or from non-component code.Example