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
  • Sensitive Input

    Sensitive Input

    6
  • Chart

    Chart

    5
  • Code Block

    Code Block

    5
  • Layer Card

    Layer Card

    3
  • Meter

    Meter

    2
  • Field

    Field

    2
  • Direction Provider

    Direction Provider

    2
  • Toast Notifications

    Toast Notifications

    2

More in Dashboards

View all
  • Creator Dashboard

    Creator Dashboard

    94
  • serf dashboard

    serf dashboard

    84
  • Dashboard with Collapsible Sidebar

    Dashboard with Collapsible Sidebar

    2.6K
  • Glass Dashboard

    Glass Dashboard

    1.1K
  • Adjustable Glass Dashboard

    Adjustable Glass Dashboard

    1.2K
  • App Dashboard Layout

    App Dashboard Layout

    572
  • Sidebar

    Sidebar

    422
  • Dashboard Shell

    Dashboard Shell

    215