Kavi Katiyar

Tracker Card

Cards 148

About

Calorie Tracker Card A visually engaging card to track daily calorie intake. It features an animated counter, a dynamic progress bar, and a list for food suggestions, all styled using shadcn/ui principles.

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

Code

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

Usage.tsx

import { Pizza } from "lucide-react";
import { CalorieTrackerCard } from "@/components/ui/tracker-card";

export default function CalorieTrackerDemo() {
  // Sample data for the component
  const foodSuggestions = [
    { name: "One bowl of salad and salmon", calories: 285 },
    { name: "Oven Baked Chicken breast", calories: 482 },
  ];

  const handleRecordClick = () => {
    // You can add your custom logic here, e.g., open a modal
    alert("Record button clicked!");
  };

  return (
    <div className="flex h-full w-full items-center justify-center bg-background p-4">
      <CalorieTrackerCard
        icon={<Pizza className="h-6 w-6" />}
        title="Daily Calories"
        subtitle="Calories consumption in a day"
        currentCalories={582}
        goalCalories={2250}
        suggestions={foodSuggestions}
        onRecord={handleRecordClick}
      />
    </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