Alerts are used to inform users of state changes, errors, or successful actions.
Some kind of contextually relevant content
That thing you wanted to do didn't work as expected
redNetwork connection interruption detected
yellowSuccessfully duplicated 2019 Sales Demographics by County layer
greenSome kind of contextually relevant content
fullHas close link!
closeLabel="Close"Some kind of contextually relevant content
That thing you wanted to do didn't work as expected
Network connection interruption detected
Successfully duplicated 2019 Sales Demographics by County layer
Some kind of contextually relevant content
icon={<BananaIcon size={16} />}| Property | Type | Required | Default | Description |
|---|---|---|---|---|
| onClose | Func | false | () => {} | Callback function fired when the close link is clicked. |
| children | Node | false | - | Components to be rendered within the Alert. |
| showIcon | Bool | false | - | Toggles visibility of the icon |
| icon | Node | false | - | Manually set an icon rather than use the default |
| blue | Bool | false | - | Color modifier for the Alert. |
| green | Bool | false | - | Color modifier for the Alert. |
| yellow | Bool | false | - | Color modifier for the Alert. |
| red | Bool | false | - | Color modifier for the Alert. |
| full | Bool | false | - | Full-width modifier for the Alert. |
| showCloseLabel | Bool | false | - | |
| closeLabel | Node | false | - | Display label used to close the Alert. |