Usage

Modal

Modals are windows that appear on top of the parent screen. They are used to focus the user’s attention on a single task or piece of information, as the user must interact with the modal to return to the parent screen.


Modals are commonly used to present forms, facilitate file uploads, and confirm actions taken by the user (such as ‘Delete’).


Hooks

“gc:show-dialog-modal”

Shows the modal on component mount when the attr show=true, or when DesignSystem.show_modal/1 is called.


“gc:hide-dialog-modal”

Hides the modal on phx-remove.