Banner 5 - Dismissible top barPro
Hairline top bar with an info icon, a short message and inline link that collapses away when closed.
About Banner 5
Hairline top bar with an info icon, a short message and inline link that collapses away when closed.
Banner 5 is a pro banner block for React, built on shadcn/ui and Tailwind CSS with motion animations that respect reduced-motion settings. It ships as 90 lines of TypeScript you own: every piece of copy is a prop with a sensible default, so you can drop it in and replace the content without touching the layout.
- dismissible
- close
- announcement
- top-bar
Installation
- Add the Chocolate UI registry to your
components.json(see the installation guide). - Run the shadcn CLI:
npx shadcn@latest add @chocolate/banner-05Dependencies installed automatically: lucide-react, motion.
Uses: utils.
Usage
import Banner05 from "@/components/blocks/banner-05"
export default function Page() {
return <Banner05 />
}