The PacemDialogElement
wraps a lightbox and forces the user to "pick a button" to be able to interact with the layout again.
Calling the open()
method a state
can be passed to the dialog and a Promise
gets returned with the clicked button and the provided state as a value { button, state }
.