Toasts
Toasts or growls are covered by special modifiers on
This is a toast
Just for your information
You can't get rid of this warning
Yay things worked
Argh there is an error
<blaze-alerts position="bottomright">
<blaze-alert open dismissible type="brand">This is a toast</blaze-alert>
<blaze-alert open dismissible type="info">Just for your information</blaze-alert>
<blaze-alert open type="warning">You can't get rid of this warning</blaze-alert>
<blaze-alert open dismissible type="success">Yay things worked</blaze-alert>
<blaze-alert open dismissible type="error">Argh there is an error</blaze-alert>
</blaze-alerts>
Since "toasts" are simply positioned Alerts you have
Attributes
Name | Description |
---|---|
position: string | Set on the toasts element for which corner the alerts are anchored to i.e. topright|bottomright|bottomleft|topleft |
dismissible: boolean | Turn on the close button |
open: boolean | Toggle the alert |
CSS
Default
Brand
Info
Warning
Success
Error
<div aria-label="6 alerts" role="presentation" class="c-alerts c-alerts--bottomright">
<div role="alert" class="c-alert">Default</div>
<div role="alert" class="c-alert c-alert--brand">Brand</div>
<div role="alert" class="c-alert c-alert--info">Info</div>
<div role="alert" class="c-alert c-alert--warning">Warning</div>
<div role="alert" class="c-alert c-alert--success">Success</div>
<div role="alert" class="c-alert c-alert--error">Error</div>
</div>