About
A dismissible page/content banner with info, warning, danger and success variants for surfacing status messages above content.
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,
BannerIcon,
BannerTitle,
BannerDescription,
BannerDismiss,
} from "@/components/ui/banner";
import { Info } from "@phosphor-icons/react";
export default function BannerDemo() {
return (
<div className="w-full max-w-xl p-6">
<Banner variant="info" dismissible>
<BannerIcon>
<Info size={16} />
</BannerIcon>
<BannerTitle>Review environment available</BannerTitle>
<BannerDescription>
Open the running application before authorizing integration.
</BannerDescription>
<BannerDismiss aria-label="Dismiss review banner" />
</Banner>
</div>
);
}
















