Kavi Katiyar

Tracker Card

Cards 155

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

    1K
  • Bento Product Features

    Bento Product Features

    843
  • 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

    225
  • Stats cards with links

    Stats cards with links

    84
  • Statistics Card 7

    Statistics Card 7

    301
  • Statistics Card 2

    Statistics Card 2

    276
  • Card Studio

    Card Studio

    10
  • Weather Card

    Weather Card

    59
  • Card

    Card

    56