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.
Vue API
import { DtBanner } from '@dialpad/dialtone-vue';Slots
Props
Events
Classes
Accessibility
Focus management
When important is set, the banner is presented as a modal alertdialog: keyboard focus moves to the first focusable element when it appears, stays trapped within the banner while it is shown, and returns to the previously focused element when the banner is dismissed. Reserve important for messages that must block the rest of the page until they are addressed.
Non-important banners use the status role and do not trap focus — keyboard users can Tab straight through them.