Shailendra Kumar

Banner

CTAs

About

This is banner

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 React from 'react';
import { useState } from "react";
import { Sparkles } from 'lucide-react';
import {Button} from "@/components/ui/button"


export default function DemoOne() {
  const [show, setShow] = useState(true);
  return <Banner
          show={show}
          onHide={() => setShow(false)}
          variant="aurora"
          title="✨ New Feature Available"
          description="Experience our redesigned dashboard with advanced analytics"
          closable={true}
          icon={<Sparkles className="h-6 w-6" />}
          action={
            <Button className="bg-violet-600 hover:bg-violet-700 text-white text-xs px-4 py-1.5 rounded-lg">
              Explore Now →
            </Button>
          }
        />
}

Dependencies

More by Shailendra Kumar

View all
  • Map

    Map

    1.7K
  • social card

    social card

    731
  • Animated 3D Card

    Animated 3D Card

    543
  • Date Picker

    Date Picker

    167
  • Animated Button

    Animated Button

    131
  • Kanban

    Kanban

    106
  • switch

    switch

    96
  • 404 page not found

    404 page not found

    81

More in CTAs

View all
  • Call to Action

    Call to Action

    12
  • Button

    Button

    70
  • Call to action

    Call to action

    172
  • Call to Action

    Call to Action

    22
  • Hero

    Hero

    1.2K
  • Responsive Hero Banner

    Responsive Hero Banner

    2K
  • Two-Plan Pricing Cards

    Two-Plan Pricing Cards

    31
  • CTA 3

    CTA 3

    402