LaviKatiyar

Card

Cards 115

About

Spending Limit Card A responsive card component that displays a spending limit with an animated, segmented progress bar.

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 { SpendingLimitCard } from "@/components/ui/card-8";

/**
 * A demo component showcasing how to pass custom color classes
 * to the SpendingLimitCard.
 */
const SpendingLimitCardDemo = () => {
  return (
    <div className="flex h-full w-full flex-col items-center justify-center gap-8 bg-background p-4 md:flex-row md:items-start">
      
      {/* Example 1: Using default colors (no color props passed) */}
      <SpendingLimitCard
        title="Groceries Budget"
        dateRange="Data from 1-17 Sep, 2025"
        buttonText="View Report"
        currentSpending={252.98}
        limit={1200}
        // Define any valid Tailwind classes here
        filledColorClass="bg-green-500"
        unfilledColorClass="bg-green-500/20"
        onButtonClick={() => alert("Custom color card report clicked!")}
      />

    </div>
  );
};

export default SpendingLimitCardDemo;

Dependencies

More by LaviKatiyar

View all
  • Hero Section

    Hero Section

    856
  • Cards

    Cards

    721
  • Service Card

    Service Card

    658
  • Card

    Card

    568
  • Alert Toast

    Alert Toast

    505
  • Bento Grid

    Bento Grid

    442
  • Freelancer Profile Card

    Freelancer Profile Card

    387
  • Referral Card

    Referral Card

    317

More in Cards

View all
  • Course Design Cards

    Course Design Cards

    1.4K
  • Statistics Card 2

    Statistics Card 2

    322
  • Card

    Card

    19
  • Stats cards with links

    Stats cards with links

    46
  • Admin Dashboard Cards

    Admin Dashboard Cards

    46
  • Model Grid Cards

    Model Grid Cards

    6
  • Card

    Card

    2
  • Interactive Tech Stack Bento Grid with Hover Effects

    Interactive Tech Stack Bento Grid with Hover Effects

    781