Components
BaseNoticeBar
A full-width strip above the page for announcements and context. The landing announcement and the demo bar are both built on it.
components/ui/BaseNoticeBar.vue
View in the demo
Example
New
Version 1.1 adds calendar syncScheduled maintenance on Sunday from 02:00 to 03:00
LandingAnnouncementBar adds a countdown and a dismissal remembered in a cookie; AppDemoReturnBar adds the way back to the template and the buy button. Both render this bar, so a change to its spacing, tone or chip lands everywhere.
API
Props
Name | Type | Default | Description |
|---|---|---|---|
labelrequired | string | — | The accessible name of the region. |
text | string | — | The message. The text slot replaces it. |
badge | string | — | A chip before the text. |
dot | boolean | true | A small dot before the text when there is no badge. |
tone | NoticeBarTone | "brand" | brand (the brand theme as background) or muted. |
theme | string | "brand" | The Vuetify theme used by the brand tone. Landings pass their own brand theme. |
dismissible | boolean | false | Adds a close button that emits dismiss. |
dismiss-label | string | — | The accessible name of the close button. |
Slots
Name | Slot props | Description |
|---|---|---|
#text | — | Replaces the message. |
#default | — | Actions and extra content after the text. |
Events
Name | Payload | Description |
|---|---|---|
@dismiss | — | The close button was pressed. |