Command Palette

Search for a command to run...

Docs
Project Progress Card

Project Progress Card

Interactive project progress card with milestone tracking and timeline visualization

Loading...

Installation

Props

PropTypeDescription
titlestringProject title
projectManagerstringName of the project manager
dueDatestringProject due date
milestonesMilestone[]Array of project milestones
onNextStep() => voidCallback function for next step button

Milestone Type

PropTypeDescription
titlestringMilestone title
descriptionstringMilestone description
completedbooleanWhether the milestone is completed

Features

  • Timeline Visualization: Visual milestone progress with icons
  • Responsive Design: Adapts to different screen sizes
  • Interactive Elements: Clickable next step button
  • Status Indicators: Clear visual distinction between completed and pending milestones
  • Smooth Animations: Powered by Framer Motion

Usage Examples

Basic Usage

import { ProjectProgressCard } from "@/components/project-progress-card";
 
const milestones = [
  {
    title: "Project Planning",
    description: "Define scope and requirements",
    completed: true,
  },
  {
    title: "Design Phase",
    description: "Create wireframes and mockups",
    completed: true,
  },
  {
    title: "Development",
    description: "Build core functionality",
    completed: false,
  },
  {
    title: "Testing & QA",
    description: "Quality assurance and bug fixes",
    completed: false,
  },
];
 
export default function App() {
  return (
    <ProjectProgressCard
      title="Website Redesign"
      projectManager="John Smith"
      dueDate="Dec 31, 2024"
      milestones={milestones}
      onNextStep={() => console.log("Next step clicked")}
    />
  );
}

With Custom Styling

import { ProjectProgressCard } from "@/components/project-progress-card";
 
export default function ProjectDashboard() {
  const handleNextStep = () => {
    // Handle next step logic
    console.log("Moving to next milestone");
  };
 
  return (
    <div className="grid gap-6 md:grid-cols-2 lg:grid-cols-3">
      <ProjectProgressCard
        title="Mobile App Development"
        projectManager="Sarah Johnson"
        dueDate="Jan 15, 2025"
        milestones={[
          {
            title: "Research & Planning",
            description: "Market research and feature planning",
            completed: true,
          },
          {
            title: "UI/UX Design",
            description: "Design user interface and experience",
            completed: false,
          },
        ]}
        onNextStep={handleNextStep}
      />
    </div>
  );
}