Alert

Alert
Content
Attribute Type Documentation Default Value
variant :string "fill"
context :string "brand"
has_close_button :boolean

If true, the close button will be rendered

false
on_close {:fun, 1}

Function to call on close button click

meta :slot

Meta content of the Alert

Show slot attributes Hide slot attributes
class :string

CSS class for the meta content

Alert
<:meta>
  <.alert_action_button>
    Action
  </.alert_action_button>
  <.alert_close_button />
</:meta>
<:content>
  Content
</:content>
content :slot
Show slot attributes Hide slot attributes
class :string

CSS class for the content

Alert
<:meta>
  <.alert_action_button>
    Action
  </.alert_action_button>
  <.alert_close_button />
</:meta>
<:content>
  Content
</:content>
inner_block :slot

Inner block of the Alert