A brief message that provides information or instructs users to take a specific action.
Adds the specified classes to the root element of the component.
Type: String
Required: No
Adds an aria-label to the dismiss button.
Type: String
Required: No
Adds a close button to the alert when set to
true
. AnonDismiss
event is fired when a user clicks the button.
Type: Boolean
Default: false
Valid values: true | false
Required: No
Adds the specified ID to the root element of the component.
Type: String
Required: No
Specifies the type of message you want to display.
Type: String
Default: "info"
Valid values: success | error | warning | info
Required: No
Determines whether the alert is displayed.
Type: Boolean
Default: true
Valid values: true | false
Required: No
Specifies an action for the alert message. Although it is technically possible to insert any content, our UX guidelines only allow you to add a button.
Displays an action button next to the message area when set. An
onButtonClick
event is fired when the user clicks it. Deprecated, replaced byaction
.
Primary text displayed in the element.
Heading text.
Fired when the user clicks the action button. Deprecated, replaced by
action
.
Cancelable: No
Fired when the user clicks the close icon that is displayed when the
dismissible
property is set totrue
.
Cancelable: No
The documentation is made available under the Creative Commons Attribution-ShareAlike 4.0 International License. See the LICENSE file.