PetalComponents.Alert
(petal_components v3.0.0)
View Source
Summary
Attributes
color
(:string
) - Defaults to "info"
.variant
(:string
) - The variant of the alert. Defaults to "light"
.with_icon
(:boolean
) - adds some icon base classes. Defaults to false
.class
(:any
) - CSS class for parent div. Defaults to nil
.heading
(:string
) - label your heading. Defaults to nil
.label
(:string
) - label your alert. Defaults to nil
.close_button_properties
(:list
) - a list of properties passed to the close button. Defaults to nil
.- Global attributes are accepted.
Slots
Functions
Attributes
color
(:string
) - Defaults to "info"
.variant
(:string
) - The variant of the alert. Defaults to "light"
.with_icon
(:boolean
) - adds some icon base classes. Defaults to false
.class
(:any
) - CSS class for parent div. Defaults to nil
.heading
(:string
) - label your heading. Defaults to nil
.label
(:string
) - label your alert. Defaults to nil
.close_button_properties
(:list
) - a list of properties passed to the close button. Defaults to nil
.- Global attributes are accepted.
Slots