Announcement Bar
5 Tailwind announcement bars. 1 free, 4 premium

- Open Source
- Copy & Paste
- Tailwind CSS v4
Boost conversions with clean, responsive Announcement Bar components you can drop into any layout. These Tailwind Announcement Bar components are HTML only with no JavaScript bundled, so you stay framework-agnostic and in control.
What you get
5 ready-to-use variants: 1 free preview and 4 premium sections.
Copy-paste HTML with Tailwind utilities only.
Lightweight and fast to style for promos, shipping notices, or product launches.
Optional dismissal or timers can be added with your own JS if needed.
Try the free component
Start with the free demo, then upgrade to unlock all 5 styles. See them on the main Announcement Bar Section page
Included styles
Simple promo bar with code pill
Link variant with secondary action
Minimal centered announcement
CTA button variant
Badge + label layout
How to use
Paste the HTML into the very top of your page layout.
Tweak spacing, colors, and content with Tailwind classes.
If you want a dismissible bar, add your own JS. The UI page showcases 5 section designs you can copy.
CTA
Browse all 5 Announcement Bar sections →
/ui/announcement-bar/
Get All-Access to Tailkits UI to unlock every premium section.
Image
Cover image: use the new asset you attached.
Alt text: “Tailwind announcement bar components showing discount code pill and CTAs.”
FAQ
Will these work with my stack (Next.js, React, Vue, plain HTML)?
Yes. Paste the markup anywhere. In React or Next.js, replace class with className. No build steps beyond Tailwind are required.
Can I change the banner’s background color?
Yes—just update the bg- utility class or apply a custom hex via bg-[#FF6600].
Can I make the bar sticky or dismissible without built-in JS?
Sticky: add fixed inset-x-0 top-0 z-50 to the wrapper. Dismiss: add a close button that toggles hidden on the wrapper with your own tiny JS or Alpine if you prefer.
How do I customize colors, spacing, and typography?
Tweak Tailwind utilities inline or extend your tailwind.config.js for brand colors and font sizes. The components are utility-first, so changes are immediate.
Are these components accessible?
Use semantic HTML, add role="region" and aria-label="Sitewide announcement", keep focusable elements keyboard reachable, and maintain at least 4.5:1 color contrast.