Elemental.Feedback.Alert (elemental v0.3.1)
An alert display component. Can display arbitrary content shown as an alert. Alerts can have multiple types each styled appropriately.
This component is mostly meant as a building block, for a more complete
toast/alerting/messaging component checkout Elemental.Feedback.Toast
which builds on top of this component to provide a toast-group/flash
system.
Summary
Functions
The primary alert component.
Functions
The primary alert component.
Attributes
type
(:string
) - The type of this alert.Must be one of"info"
,"success"
,"warning"
, or"error"
.outline
(:boolean
) - Render the alert in an outline style. Defaults tofalse
.dash
(:boolean
) - Render the alert in dash style. Defaults tofalse
.soft
(:boolean
) - Render the alert in soft style. Defaults tofalse
.direction
(:string
) - The layout's direction, vertical which is better for mobile and horizontal which is better for desktop. Must be one of"vertical"
, or"horizontal"
.- Global attributes are accepted.
Slots
inner_block
(required) - .