adit-firdaus

Notice Bar

Component 1

About

A full-width, dismissible system banner for transient status messages (recording, connection, alerts) with an optional measured text marquee for long messages.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Notice Bar to your project and fits it to your theme.

Code

How Notice Bar is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { NoticeBar } from "@/components/ui/notice-bar";
import { IoFlashOutline } from "react-icons/io5";

export default function NoticeBarMarqueeDemo() {
  return (
    <div className="w-full h-screen flex items-center justify-center bg-[var(--may-color-bg,#f2f2f7)] p-6">
      <div
        className="flex flex-col gap-3"
        style={{ maxWidth: 420, width: "100%" }}
      >
        <NoticeBar tone="warning" marquee icon={<IoFlashOutline aria-hidden />}>
          Flash Flood Warning in effect for this area until 9:00 PM. Avoid
          low-lying roads and move to higher ground if advised by local
          officials.
        </NoticeBar>
        <NoticeBar tone="neutral" marquee speed={80}>
          AAPL 232.14 ▲ 1.2% · MSFT 418.90 ▼ 0.4% · NVDA 121.55 ▲ 3.8% · TSLA
          248.02 ▼ 2.1%
        </NoticeBar>
        <NoticeBar tone="tint" marquee>
          Syncing…
        </NoticeBar>
      </div>
    </div>
  );
}

Dependencies

More by adit-firdaus

View all
  • Steps

    Steps

    44
  • Popover

    Popover

    3
  • Adaptive Card

    Adaptive Card

  • Box

    Box

  • Pagination

    Pagination

  • Adaptive Sheet

    Adaptive Sheet

  • Label

    Label

  • Kbd

    Kbd