Stop Rebuilding UI

Shadcn.io is not affiliated with official shadcn/ui

React Announcement Bar Hero Block

A React and Next.js hero section with dismissible announcement banner, centered headline, and dual CTA buttons built with shadcn/ui Button, Tailwind CSS, and Framer Motion AnimatePresence.

Lead with news. This React and Next.js hero block opens with a dismissible announcement bar powered by Framer Motion AnimatePresence, followed by a centered headline section with dual shadcn/ui Button CTAs styled with Tailwind CSS. The TypeScript component manages dismiss state with React useState, and the bar collapses with a smooth height and opacity animation. The announcement bar features a linked badge, external link icon from Lucide React, and an accessible close button. Perfect for product launches, conference announcements, limited-time offers, or any Next.js landing page with timely news.

React Announcement Bar Hero Block preview

Loading...
Scroll to load preview

Installation

Install
Pro block

FAQ

Last updated on March 28, 2026

Was this page helpful?

Sign in to leave feedback.