See PhenixStorybook.Components.Modal.ModalHeader on how to configure target.
<.button phx-click={JS.push("psb-assign", value: %{show: true})} text="Open me"/> <.modal id="modal-single-default" overlay_close close_modal_event={JS.push("psb-assign", value: %{show: false, variation_id: :default})} > <.modal_header title="Fancy title with icon" icon="fas fa-bullhorn" close_modal_event={JS.push("psb-assign", value: %{show: false, variation_id: :default})} /> <.modal_body class="text-center"> <p class="text-default-txt"> Some modal content here </p> </.modal_body> <.modal_footer> <.button text="Valider"/> </.modal_footer> </.modal>