Renders a modal.
<.modal id="confirm-modal"> This is a modal. </.modal>
JS commands may be passed to the :on_cancel to configure the closing/cancel event, for example:
:on_cancel
<.modal id="confirm" on_cancel={JS.navigate(~p"/posts")}> This is another modal. </.modal>
Modal body <.dialog_footer> <.button type="submit">Cancel</.button> </.dialog_footer>