Anish Gupta

Countdown Card

Cards

About

A card that displays the number of days until (or since) a date or named holiday, with an animated day count and a formatted date chip.

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

Code

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

Usage.tsx

"use client";

import CountdownCard from "@/components/ui/countdown-card";

export default function CountdownCardDemo() {
  const year = new Date().getFullYear();
  const data = {
    title: "Christmas",
    date: new Date(year, 11, 25),
    days: 40,
  };

  return (
    <div className="flex w-full max-w-sm items-center justify-center bg-background p-8">
      <CountdownCard data={data} interactive={false} />
    </div>
  );
}

Dependencies

More by Anish Gupta

View all
  • Goal Progress Card

    Goal Progress Card

  • Morph Container

    Morph Container

  • Animated Checklist

    Animated Checklist

  • Bill Split Card

    Bill Split Card

  • Habit Tracker Card

    Habit Tracker 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