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>Closed by default</:title>
Required inner_block * :slot
Closed modals remain inert until show_modal/1 opens them.
actions :slot