Ravi Katiyar

Banner

Component 15

About

Promo Banner This component is designed to be a flexible and reusable promotional banner. It accepts title, description, and an icon as props, making it easy to adapt for various use cases. The entire banner becomes a clickable link if an href prop is provided.

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 { PromoBanner } from "@/components/ui/banner"; // Adjust the import path
import { Crown } from "lucide-react";

export default function PromoBannerDemo() {
  return (
    <div className="flex w-full max-w-md items-center justify-center p-4">
      <PromoBanner
        title="Taxita One"
        description="Join now and get 1 month free"
        href="https://example.com"
        icon={<Crown className="h-5 w-5" />}
      />
    </div>
  );
}

Dependencies

More by Ravi Katiyar

View all
  • Animated Shader Hero

    Animated Shader Hero

    3.7K
  • Hero

    Hero

    3.1K
  • Circular Gallery

    Circular Gallery

    2.7K
  • Minimalist Hero

    Minimalist Hero

    2.5K
  • Floating Icons Hero Section

    Floating Icons Hero Section

    1.9K
  • Glass Calendar

    Glass Calendar

    1.8K
  • Feature Carousel

    Feature Carousel

    1.7K
  • AI Image Generator Hero

    AI Image Generator Hero

    1.4K