Anish Gupta

Habit Tracker Card

Cards

About

A card that shows a habit's title and lets you toggle which days of the week it repeats on, with chips marking the recurrence label.

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

Code

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

Usage.tsx

"use client";

import HabitCard from "@/components/ui/habit-tracker-card";

export default function HabitTrackerCardDemo() {
  return (
    <div className="flex w-full items-center justify-center p-10">
      <div className="w-full max-w-sm rounded-2xl border border-border bg-card p-5 shadow-sm">
        <HabitCard
          data={{
            title: "Meditate",
            days: [1, 2, 3, 4, 5],
            perWeek: null,
            label: "Weekdays",
          }}
          interactive={true}
        />
      </div>
    </div>
  );
}

Dependencies

More by Anish Gupta

View all
  • Countdown Card

    Countdown Card

  • Morph Container

    Morph Container

  • Animated Checklist

    Animated Checklist

  • Bill Split Card

    Bill Split Card

More in Cards

View all
  • Course Design Cards

    Course Design Cards

    1.3K
  • Statistics Card 7

    Statistics Card 7

    327
  • Statistics Card 2

    Statistics Card 2

    305
  • Interactive Tech Stack Bento Grid with Hover Effects

    Interactive Tech Stack Bento Grid with Hover Effects

    625
  • Card Studio

    Card Studio

    5
  • The Item one

    The Item one

    4
  • Weather Card

    Weather Card

    65
  • Card

    Card

    9