Alert

Alert
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

content :slot
Show slot attributes Hide slot attributes
class :string

CSS class for the content

inner_block :slot

Inner block of the Alert

Alert