Components · Feedback · Announcement Bar
Back to Announcement BarAnnouncement BarNew
Use for a slim top-of-page banner - site-wide promotions, launches or maintenance notices - that can rotate and count down.
Properties
Size, corner radius and the content options below are properties of the same component, not separate elements - change them to check this component's appearances and states in the Live Preview.
Live Preview
Every appearance side by side, each in every state. One full matrix is rendered per selected Size and Corner radius combination.
When to use
Site-wide promotions, launches or maintenance notices.
Component Guide
Overview
Announcement Bar is a slim banner that rotates messages, can show a live countdown and a call to action, and collapses smoothly when dismissed.
When to Use
- Site-wide promotions, launches or maintenance notices.
- Two to four short rotating announcements.
- A sale banner with a live countdown.
When Not to Use
- Section- or form-specific messages - use Alert.
- Feedback about something just done - use Toast.
- Consent choices - use Cookie Consent.
Best Practices
- Keep each message to one short sentence.
- Place it above the site header.
- Change the id to show the bar again for a new campaign.
Accessibility
- A labelled section; with several messages it acts as a carousel.
- Rotation is not announced; pause on hover and focus.
- Countdowns are role=timer with a spoken label.
Related Components
Alert, Toast Stack, Cookie Consent.
{
"component": "Announcement Bar",
"category": "Feedback",
"summary": "Announcement Bar is a slim banner that rotates messages, can show a live countdown and a call to action, and collapses smoothly when dismissed.",
"whenToUse": [
"Site-wide promotions, launches or maintenance notices.",
"Two to four short rotating announcements.",
"A sale banner with a live countdown."
],
"whenNotToUse": [
"Section- or form-specific messages - use Alert.",
"Feedback about something just done - use Toast.",
"Consent choices - use Cookie Consent."
],
"bestPractices": [
"Keep each message to one short sentence.",
"Place it above the site header.",
"Change the id to show the bar again for a new campaign."
],
"accessibility": [
"A labelled section; with several messages it acts as a carousel.",
"Rotation is not announced; pause on hover and focus.",
"Countdowns are role=timer with a spoken label."
],
"relatedComponents": [
"Alert",
"Toast Stack",
"Cookie Consent"
]
}