Landing
LandingAnnouncementBar
Top notice with an optional chip (badge), an action, dismissal remembered in a cookie and an optional countdown (endsAt).
components/landing/LandingAnnouncementBar.vue
View in the demo
Example
November bookings are open - 2 spots left for new projectsBook a spot
Launch week: 30% off every planSee plans
Page widget: set announcement in the content.
API
Props
Name | Type | Default | Description |
|---|---|---|---|
idrequired | string | — | A unique id, used to remember the dismissal. |
textrequired | string | — | The main text. |
badge | string | — | A small chip. |
action | LandingAction | — | A LandingAction: label plus to or href, and kind. |
tone | "brand" | "muted" | "brand" | brand or muted background. |
ends-at | string | — | An ISO date for a countdown. |
dismissible | boolean | true | Shows the close button; the dismissal is remembered in a cookie. |