<:modal_box>
<h3 class="text-lg font-bold">Hello!</h3>
<p class="py-4">Press ESC key or click the button below to close</p>
<.modal_action>
<form method="dialog">
<!-- if there is a button in form, it will close the modal -->
<.button phx-click={JS.exec("data-cancel", to: "#modal-single-responsive")}>Close</.button>
</form>
</.modal_action>
</:modal_box>
|