new module:AlertNotification(props)
This is the constructor for the Alert Notification class
Parameters:
| Name | Type | Description |
|---|---|---|
props |
Properties:
| Name | Type | Description |
|---|---|---|
theme |
string | Theme of the notification. ["primary", "secondary", "info", "danger", "warning", "success", "light", "dark" |
message |
string | Message to display in the notification. |
- Source:
Example
<div>
<AlertNotification theme={"warning"} message={"Launching in read-only mode"}/>
</div>