Kavi Katiyar

Card

Cards 48

About

PromoCard An advanced, self-contained promotional card designed to be visually engaging and build user trust. It features an embedded animated dot-pattern background for texture, a sequential loading indicator, and smooth framer-motion transitions, all without requiring external CSS modifications.

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

Code

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

Usage.tsx

import { useState } from "react";
import { AnimatePresence } from "framer-motion";

import { PromoCard } from "@/components/ui/card-9";
import { Button } from "@/components/ui/button";

export default function PromoCardDemo() {
  const [isCardVisible, setIsCardVisible] = useState(true);

  // Handlers for the card actions
  const handleGetStarted = () => {
    alert("Get Started button clicked!");
    setIsCardVisible(false);
  };

  const handleClose = () => {
    setIsCardVisible(false);
  };

  const handleShowCard = () => {
    setIsCardVisible(true);
  };

  return (
    <div className="flex min-h-[450px] w-full flex-col items-center justify-center gap-4 bg-background p-4">
      <AnimatePresence>
        {isCardVisible && (
          <PromoCard
            label="Join VeloMark Pro!"
            title={<>Ready to boost <br /> your performance?</>}
            buttonText="Get Started"
            onButtonClick={handleGetStarted}
            onClose={handleClose}
          />
        )}
      </AnimatePresence>

      {!isCardVisible && (
        <Button onClick={handleShowCard}>Show Promo Card</Button>
      )}
    </div>
  );
}

Dependencies

More by Kavi Katiyar

View all
  • 3D Card

    3D Card

    981
  • Bento Product Features

    Bento Product Features

    831
  • Testimonial Slider

    Testimonial Slider

    716
  • Card

    Card

    607
  • Order Confirmation Card

    Order Confirmation Card

    504
  • Project Detail View

    Project Detail View

    408
  • State

    State

    393
  • Animated Card

    Animated Card

    393

More in Cards

View all
  • Stats cards with links

    Stats cards with links

    33
  • Course Design Cards

    Course Design Cards

    1.1K
  • Card

    Card

    70
  • Statistics Card 2

    Statistics Card 2

    264
  • Statistics Card 10

    Statistics Card 10

    263
  • Card

    Card

    17
  • Card Studio

    Card Studio

    9
  • The Item one

    The Item one

    3