Serafim

Banner

Buttons 131

About

Banner alert inspired by shadcn/ui format

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 } from "@/components/ui/banner"
import { Button } from "@/components/ui/button"

function BannerCookie() {
  return (
    <Banner rounded="default" className="shadow-lg shadow-black/5">
      <div className="w-full">
        <div className="flex flex-col justify-between gap-3 md:flex-row md:items-center">
          <p className="text-sm">
            We use cookies to improve your experience, analyze site usage, and show personalized content.
          </p>
          <div className="flex shrink-0 gap-2 max-md:flex-wrap">
            <Button size="sm">Accept</Button>
            <Button variant="outline" size="sm">Decline</Button>
          </div>
        </div>
      </div>
    </Banner>
  )
}

export { BannerCookie }

Dependencies

More by Serafim

View all
  • Spline Scene

    Spline Scene

    9.8K
  • Testimonials with Marquee

    Testimonials with Marquee

    2.5K
  • Gradient Button

    Gradient Button

    2.1K
  • Pixel Canvas

    Pixel Canvas

    934
  • Animated Blur Number

    Animated Blur Number

    840
  • Empty State

    Empty State

    809
  • Balloons

    Balloons

    803
  • Status Badge

    Status Badge

    699

More in Buttons

View all
  • Button

    Button

    20
  • Button

    Button

    3
  • Button Group

    Button Group

    18
  • Button

    Button

    149
  • Icon Label Subtext Button

    Icon Label Subtext Button

    69
  • Button

    Button

    9
  • Button

    Button

    37
  • Texture Button

    Texture Button

    113