A banner is a type of Notice, delivering system and engagement messaging. It is highly intrusive and should be used sparingly and appropriately.
Preview
Usage
System banners are used for system messaging. They are full-width notices placed in one of two locations:
- Above everything else: If the banner is related to the entire app (e.g. the user lost internet service), place the banner first. These should not be dismissable until the issue is resolved. To pin the banner to the top of the app, add the
.d-notice--pinnedclass. - Below the top bar: This is the default location for system banners. Use these when it affects only a particular area of the product (e.g. when the user is in Do Not Disturb mode).
Banners are a type of notice and so you can use the following Notice styles in conjunction with .d-banner.
Variants and Examples
Kind
Pinned
Pins the banner to the top of the window.