Kavi Katiyar

Card

Cards 170

About

Analytics Card This component encapsulates the entire visual element, including the header, total amount, and the animated bar chart. It is designed to be highly reusable and theme-adaptive.

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 { AnalyticsCard } from '@/components/ui/card';
import { ArrowUpRight } from 'lucide-react'; // Example icon from lucide-react

// --- DEMO COMPONENT ---
// Provides a clean, centered preview of the AnalyticsCard.
const AnalyticsCardDemo = () => {
  // Sample data to be passed into the component via props.
  const sampleAnalyticsData = [
    { label: 'Mon', value: 64 },
    { label: 'Tue', value: 52 },
    { label: 'Wed', value: 46 },
  ];

  return (
    <div className="flex h-screen w-full items-center justify-center bg-background p-4">
      <AnalyticsCard
        title="Analytics"
        totalAmount="$242,63"
        icon={<ArrowUpRight className="h-4 w-4 text-muted-foreground" />}
        data={sampleAnalyticsData}
      />
    </div>
  );
};

export default AnalyticsCardDemo;

Dependencies

More by Kavi Katiyar

View all
  • 3D Card

    3D Card

    1K
  • Bento Product Features

    Bento Product Features

    842
  • Testimonial Slider

    Testimonial Slider

    723
  • Card

    Card

    614
  • Order Confirmation Card

    Order Confirmation Card

    512
  • Project Detail View

    Project Detail View

    415
  • Animated Card

    Animated Card

    402
  • Performance Benchmark Card

    Performance Benchmark Card

    395

More in Cards

View all
  • Course Design Cards

    Course Design Cards

    1.1K
  • Interactive Tech Stack Bento Grid with Hover Effects

    Interactive Tech Stack Bento Grid with Hover Effects

    223
  • Stats cards with links

    Stats cards with links

    84
  • Statistics Card 7

    Statistics Card 7

    301
  • Card Studio

    Card Studio

    10
  • Statistics Card 2

    Statistics Card 2

    276
  • Weather Card

    Weather Card

    59
  • Card

    Card

    56