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
<:title>Modal Title</:title>
Required inner_block * :slot
This is the modal body content.
actions :slot
<:actions><ExoUI.Components.button variant="primary">Save</ExoUI.Components.button></:actions>