About
A page-wide announcement bar with info/success/warning tones, an optional action, and controlled or local dismissal.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Banner to your project and fits it to your theme.
Code
How Banner is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { Banner } from "@/components/ui/banner";
export default function BannerDemo() {
return (
<Banner
className="w-full max-w-lg"
title="A new workspace view is ready"
description="Your team can switch to the updated layout at any time."
action={
<a
href="#workspace"
className="text-primary rounded-sm text-sm font-semibold underline-offset-4 hover:underline focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50"
>
Explore the update
</a>
}
dismissible
/>
);
}








