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