Banner 24 - Stacked two-level bannersPro

A black primary announcement bar stacked above a lighter secondary info bar, each independently dismissible.

About Banner 24

A black primary announcement bar stacked above a lighter secondary info bar, each independently dismissible.

Banner 24 is a banner block for React and Tailwind CSS, included in Chocolate UI Pro. It ships as 89 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.

  • stacked
  • multiple
  • two-level
  • dismissible

Installation

  1. Set up your project with npx chocolateui init and npx chocolateui login (see the installation guide).
  2. Run the Chocolate UI CLI:
npx chocolateui add banner-24

Dependencies installed automatically: lucide-react.

Uses: utils.

Usage

import Banner24 from "@/components/blocks/banner-24"

export default function Page() {
  return <Banner24 />
}

FAQ