Modal

Attribute Type Documentation Default Value
Required id * :string
show :boolean false
role :string "dialog"
label :string "Dialog"
close_label :string

accessible name of the close button, in the page's language

"Close"
on_cancel %JS{} %Phoenix.LiveView.JS{ops: []}
close_on_cancel :boolean true
class :any
rest :global
title :slot
Required inner_block * :slot
Use aria-label when the modal has no visible title.
actions :slot
<:actions><ExoUI.Components.button variant="outline">Cancel</ExoUI.Components.button><ExoUI.Components.button variant="primary">Send invite</ExoUI.Components.button></:actions>