Preet Suthar

Task Progress

Cards

About

A card that visualizes task-completion progress with a percentage bar, an optional goal target, and a breakdown of completed, in-progress, and to-do task counts.

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

Code

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

Usage.tsx

import TaskProgress from "@/components/ui/task-progress";
import type { Task } from "@/components/ui/task-progress-utils/task-list";

const tasks: Task[] = [
  {
    id: "1",
    title: "Design landing page",
    status: "done",
    priority: "high",
    createdAt: new Date(),
    updatedAt: new Date(),
  },
  {
    id: "2",
    title: "Set up CI/CD pipeline",
    status: "done",
    priority: "medium",
    createdAt: new Date(),
    updatedAt: new Date(),
  },
  {
    id: "3",
    title: "Write API documentation",
    status: "in_progress",
    priority: "medium",
    createdAt: new Date(),
    updatedAt: new Date(),
  },
  {
    id: "4",
    title: "Fix login bug",
    status: "in_progress",
    priority: "urgent",
    createdAt: new Date(),
    updatedAt: new Date(),
  },
  {
    id: "5",
    title: "Plan Q3 roadmap",
    status: "todo",
    priority: "low",
    createdAt: new Date(),
    updatedAt: new Date(),
  },
  {
    id: "6",
    title: "Onboard new designer",
    status: "todo",
    priority: "medium",
    createdAt: new Date(),
    updatedAt: new Date(),
  },
  {
    id: "7",
    title: "Deprecated feature cleanup",
    status: "cancelled",
    priority: "low",
    createdAt: new Date(),
    updatedAt: new Date(),
  },
];

export default function TaskProgressDemo() {
  return (
    <div className="w-full max-w-xl p-4">
      <TaskProgress goal={8} tasks={tasks} />
    </div>
  );
}

Dependencies

More by Preet Suthar

View all
  • Modern & Stunning sign in

    Modern & Stunning sign in

    1.6K
  • Shining Text

    Shining Text

    1.5K
  • Magic Text

    Magic Text

    845
  • Toolbar

    Toolbar

    818
  • Hero 2

    Hero 2

    818
  • Typewriter Text

    Typewriter Text

    768
  • AI Chat Input

    AI Chat Input

    733
  • Full Screen Signup

    Full Screen Signup

    728

More in Cards

View all
  • Stats cards with links

    Stats cards with links

    39
  • Statistics Card 2

    Statistics Card 2

    260
  • Course Design Cards

    Course Design Cards

    1.1K
  • The Item one

    The Item one

    3
  • Card

    Card

    70
  • Card Studio

    Card Studio

    7
  • Statistics Card 7

    Statistics Card 7

    289
  • Card

    Card

    17

Explore more

Part of HextaUI — browse the full library on 21st.dev.