Aashir Zayd

Contribution Heatmap

Dashboards 11

About

A polished GitHub-style contribution heatmap component for React and TypeScript. Includes dark/light theme support, multiple color palettes, interactive tooltips, replay animation, and export-to-image functionality. Designed for dashboards, developer portfolios, analytics platforms, and activity tracking interfaces with a clean, modern UI and customizable layout

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

Code

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

Usage.tsx

"use client"

import ContributionHeatmap from "@/components/ui/contribution-heatmap"

function generateData() {

  const today = new Date()
  const data = []

  for (let i = 365; i >= 0; i--) {

    const d = new Date(today)
    d.setDate(today.getDate() - i)

    data.push({
      date: d.toISOString().split("T")[0],
      count: Math.random() < 0.5 ? 0 : Math.floor(Math.random() * 6)
    })

  }

  return data
}

export default function Demo() {

  const data = generateData()

  return (
    <div className="w-full flex flex-col items-center gap-6 p-10">

      <div className="text-center max-w-md">

        <h2 className="text-lg font-semibold">
          Contribution Heatmap
        </h2>

        <p className="text-sm text-muted-foreground mt-1">
          A GitHub-style activity heatmap with theme support,
          export functionality, and animated replay.
        </p>

      </div>

      <ContributionHeatmap data={data} />

    </div>
  )
}

Dependencies

More by Aashir Zayd

View all
  • Creator Dashboard

    Creator Dashboard

    227
  • Card Fan

    Card Fan

    144
  • Paper Plane

    Paper Plane

    115
  • Venue Ticketing

    Venue Ticketing

    109
  • Container Loader

    Container Loader

    74
  • Clipboard Hero

    Clipboard Hero

    71
  • Uptime Pet

    Uptime Pet

    63
  • Commit Bonsai

    Commit Bonsai

    54

More in Dashboards

View all
  • Fernly — Project Management Dashboard with Kanban

    Fernly — Project Management Dashboard with Kanban

    783
  • Analytics Dashboard

    Analytics Dashboard

    96
  • Corbel — Sales Analytics Dashboard

    Corbel — Sales Analytics Dashboard

    527
  • Insights Dashboard

    Insights Dashboard

    51
  • serf dashboard

    serf dashboard

    147
  • Dashboard with Collapsible Sidebar

    Dashboard with Collapsible Sidebar

    2.7K
  • Halden — CRM Dashboard with Sales Pipeline

    Halden — CRM Dashboard with Sales Pipeline

    76
  • Business/Sales Dashboard

    Business/Sales Dashboard

    1.6K