Kavi Katiyar

Card

Cards 90

About

Cashback Partners Card This component displays a card with a title and a grid of partner logos, names, and cashback percentages. It's designed to be responsive and theme-aware, adapting to both light and dark modes.

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 * as React from "react";
import { CashbackPartnersCard, Partner } from "@/components/ui/card-1";

// --- Logo Components using external SVG URLs ---
const GoogleLogo = () => (
  <img src="https://cdn.21st.dev/assets/mirror/a6/a60266dab17c1c00981c7077fa025aa84c92782e0657ca2f78b7f70cbb8d5a56.svg" alt="Google logo" className="h-6 w-6" />
);

const AppleLogo = () => (
  <img src="https://cdn.21st.dev/assets/mirror/de/de2f3496ee97a2f7adeaa65b7e5cab617b425ab37aab4c14c87057a4e2af77f8.svg" alt="Apple logo" className="h-7 w-7" />
);

const Slack = () => (
  <img src="https://cdn.21st.dev/assets/mirror/29/29734796b3a85f9d0e03150d53142fab0b7f994ae80c7e3e1efd0bef52c12f5d.svg" alt="Mailchimp logo" className="h-7 w-7" />
);

const FigmaLogo = () => (
  <img src="https://cdn.21st.dev/assets/mirror/5b/5bcdea3417293412845b8298fe357fce3b192e8ff112d9b3fef315bc5cd127f6.svg" alt="Figma logo" className="h-7 w-7" />
);


// --- Demo Component ---
const CashbackPartnersDemo = () => {
  const partnersData: Partner[] = [
    {
      name: "Google",
      cashback: "1.5%",
      logo: <GoogleLogo />,
      href: "#",
    },
    {
      name: "N8n",
      cashback: "1.1%",
      logo: <AppleLogo />,
      href: "#",
    },
    {
      name: "Slack",
      cashback: "3.2%",
      logo: <Slack />,
      href: "#",
    },
    {
      name: "Figma",
      cashback: "2.8%",
      logo: <FigmaLogo />,
      href: "#",
    },
  ];

  return (
    <div className="flex min-h-screen w-full items-center justify-center bg-background p-4">
      <CashbackPartnersCard 
        title="Cashback From Partners" 
        partners={partnersData} 
      />
    </div>
  );
};

export default CashbackPartnersDemo;

Dependencies

More by Kavi Katiyar

View all
  • 3D Card

    3D Card

    980
  • Bento Product Features

    Bento Product Features

    830
  • Testimonial Slider

    Testimonial Slider

    715
  • Card

    Card

    606
  • Order Confirmation Card

    Order Confirmation Card

    504
  • Project Detail View

    Project Detail View

    408
  • State

    State

    393
  • Animated Card

    Animated Card

    392

More in Cards

View all
  • Statistics Card 2

    Statistics Card 2

    263
  • Card

    Card

    70
  • Stats cards with links

    Stats cards with links

    39
  • Course Design Cards

    Course Design Cards

    1.1K
  • The Item one

    The Item one

    3
  • Card Studio

    Card Studio

    7
  • Statistics Card 7

    Statistics Card 7

    290
  • Item

    Item

    10