Display a non-interruptive message and related optional actions.
Property |
Attribute |
Type |
Default |
Description |
role |
role |
AriaRole |
"banner" |
Role of the banner. |
Name |
Description |
|
Default content. |
action |
Action content (you can have multiple slots named action). |
icon |
Icon content. |
Property |
Description |
--banner-bg |
Background |
--banner-color |
Color |
--banner-content-padding |
Padding of the content slot |
--banner-icon-color |
Color of the icon |
--banner-icon-margin |
Margin of the icon slot |
--banner-padding |
Padding |
Go here to try the demo.
Licensed under MIT.