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

  • Goal Progress Card

    Goal Progress 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
  • Photo Deck

    Photo Deck

    47
  • Folded Card

    Folded Card

    45
  • Statistics Card 10

    Statistics Card 10

    304
  • Statistics Card 2

    Statistics Card 2

    309
  • Statistics Card 7

    Statistics Card 7

    336
  • CTA Section

    CTA Section

    6
  • Liquid Glass Card

    Liquid Glass Card

    198