How to implement a Modal in Phoenix LiveView

I need to create a modal to show the profile of a user, but i don’t know how i can do this implementation within the live view. Does anyone know, or have you used something similar? :cry:

:wave: might be relevant.


The blog post above might be outdated. For a “fresher” approach see the modal generated in a new live view project:

mix --live app
mix Accounts User users name:string age:integer

The relevant file is in lib/app_web/live/modal_component.ex.