View Source PetalComponents.Alert (petal_components v0.19.1)
Link to this section Summary
Functions
Attributes
color
(:string
) - Defaults to"info"
.with_icon
(:boolean
) - adds some icon base classes. Defaults tofalse
.class
(:string
) - CSS class for parent div. Defaults to""
.heading
(:string
) - label your heading. Defaults tonil
.label
(:string
) - label your alert. Defaults tonil
.rest
(:global
)close_button_properties
(:list
) - a list of properties passed to the close button. Defaults tonil
.
Slots
inner_block
Link to this section Functions
attributes
Attributes
color
(:string
) - Defaults to"info"
.with_icon
(:boolean
) - adds some icon base classes. Defaults tofalse
.class
(:string
) - CSS class for parent div. Defaults to""
.heading
(:string
) - label your heading. Defaults tonil
.label
(:string
) - label your alert. Defaults tonil
.rest
(:global
)close_button_properties
(:list
) - a list of properties passed to the close button. Defaults tonil
.
slots
Slots
inner_block