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
  • Fernly — Project Management Dashboard with Kanban

    Fernly — Project Management Dashboard with Kanban

    659
  • Analytics Dashboard

    Analytics Dashboard

    59
  • Creator Dashboard

    Creator Dashboard

    208
  • Insights Dashboard

    Insights Dashboard

    35
  • serf dashboard

    serf dashboard

    137
  • Corbel — Sales Analytics Dashboard

    Corbel — Sales Analytics Dashboard

    293
  • Dashboard with Collapsible Sidebar

    Dashboard with Collapsible Sidebar

    2.7K
  • Business/Sales Dashboard

    Business/Sales Dashboard

    1.5K