ganapativs

Activity Grid

Component

About

A GitHub-style contribution grid that shades each cell in a series by discrete intensity level, for visualizing daily activity, streaks, and seasonality.

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

Code

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

Usage.tsx

import { ActivityGrid } from "@/components/ui/activity-grid";

const commits = [
  0, 1, 2, 1, 3, 4, 2, 0, 1, 3, 2, 4, 3, 1, 0, 2, 4, 3, 2, 1, 3, 0, 2, 3, 4, 1,
  2, 0, 1, 2, 3, 4, 2, 1, 0,
];

export default function ActivityGridDemo() {
  return (
    <div className="flex items-center justify-center p-10">
      <ActivityGrid data={commits} title="Commits" />
    </div>
  );
}

More by ganapativs

View all
  • SparkBar

    SparkBar

  • Delta Indicator

    Delta Indicator

  • Dumbbell Chart

    Dumbbell Chart

  • Calendar Strip

    Calendar Strip

  • Trend Arrow

    Trend Arrow

  • Rate Volume Chart

    Rate Volume Chart

  • Heat Strip

    Heat Strip