generic-alert
WAI ARIA PracticesAn alert is an element that displays a brief, important message in a way that attracts the user's attention without interrupting the user's task.
API:
name | description |
---|---|
default | Provide a content node as lightdom |
Usage:
Simply drop the element in your page.
Default:
Show code
<generic-alert>This is an alert</generic-alert>
Custom style:
Show code
<style>
.info {
background-color: #fff5af;
border: 1px solid #f7dc1b;
color: black;
}
</style>
<generic-alert class="info">Here is some info</generic-alert>