Edu Calvo

Wallet Card

Cards 34

About

A stacked, swipeable display of a user's bank/credit cards with a realistic chip, network logo, masked balance toggle, and shared-member avatars.

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

Code

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

Usage.tsx

import WalletCard from "@/components/ui/wallet-card";

const accounts = [
  {
    id: "1",
    label: "Everyday",
    balance: 4231.89,
    currency: "USD",
    last4: "4242",
    holder: "Alex Rivera",
    expiry: "08/29",
    network: "visa" as const,
  },
  {
    id: "2",
    label: "Savings",
    balance: 18042.5,
    currency: "USD",
    last4: "9981",
    holder: "Alex Rivera",
    expiry: "03/28",
    network: "mastercard" as const,
    gradient:
      "bg-[linear-gradient(145deg,oklch(0.5_0.09_180),oklch(0.28_0.05_180))]",
  },
  {
    id: "3",
    label: "Business",
    balance: 902.4,
    currency: "USD",
    last4: "1120",
    holder: "Alex Rivera",
    expiry: "11/27",
    network: "amex" as const,
    gradient:
      "bg-[linear-gradient(145deg,oklch(0.45_0.09_35),oklch(0.24_0.05_35))]",
  },
];

const members = [
  {
    id: "m1",
    name: "Alex Rivera",
    avatar: "https://cdn.21st.dev/assets/stock/avatar/ar.svg",
  },
  {
    id: "m2",
    name: "Jamie Morgan",
    avatar: "https://cdn.21st.dev/assets/stock/avatar/jm.svg",
  },
  {
    id: "m3",
    name: "Sam Kim",
    avatar: "https://cdn.21st.dev/assets/stock/avatar/sk.svg",
  },
];

export default function Demo() {
  return (
    <div className="flex w-full max-w-sm items-center justify-center p-6">
      <WalletCard accounts={accounts} members={members} />
    </div>
  );
}

Dependencies

More by Edu Calvo

View all
  • Scrollable Card Stack

    Scrollable Card Stack

    235
  • AI Task List

    AI Task List

    160
  • Siri Orb

    Siri Orb

    160
  • Cursor Follow

    Cursor Follow

    154
  • Pixel Flow Field

    Pixel Flow Field

    142
  • Agent Avatar

    Agent Avatar

    130
  • Gravity Stars

    Gravity Stars

    112
  • Coverflow Carousel

    Coverflow Carousel

    95

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

Explore more

Part of SmoothUI — browse the full library on 21st.dev.