UiAlert

UiAlert shows an inline alert message to the user. Supported types are info, success, warning and error.

UiAlert supports keyboard navigation, can contain links and can be dismissed. The alert icon can be changed or removed.

Examples View Source

API

Name Type Default Description
type String "info"

The type of alert. Determines the alert background color and default icon.

One of info, success, warning or error.

removeIcon Boolean false

Whether or not the alert icon is removed.

Set to true to remove the icon.

disableAnimation Boolean false

Whether or not the alert should be animated when showing and hiding.

Set to true to disable the animation.

dismissible Boolean true

Whether or not the alert shows a dismiss button.

You should listen for the dismiss event and hide the alert.

Set to false to remove the dismiss button.