russellbloxwich

Banner

Dashboards

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>
  );
}

Dependencies

More by russellbloxwich

View all
  • Chart

    Chart

    2
  • Code Block

    Code Block

    2
  • Sensitive Input

    Sensitive Input

    2
  • Layer Card

    Layer Card

    1
  • Direction Provider

    Direction Provider

    1
  • Switch

    Switch

  • Bubble

    Bubble

  • Meter

    Meter

More in Dashboards

View all
  • Dashboard with Collapsible Sidebar

    Dashboard with Collapsible Sidebar

    2.5K
  • Sidebar

    Sidebar

    286
  • SaaS Template

    SaaS Template

    2.5K
  • Stats Bento

    Stats Bento

    1.1K
  • Chat template

    Chat template

    614
  • System Status Block

    System Status Block

    316
  • Course Design Cards

    Course Design Cards

    1.1K
  • Card

    Card

    210