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";

export default function ActivityGridEdgeCasesDemo() {
  return (
    <div className="flex flex-wrap items-center justify-center gap-10 p-10">
      <ActivityGrid data={[]} title="No history" cell={12} />
      <ActivityGrid data={[0, 0, 0, 0, 0, 0, 0]} title="Quiet week" cell={12} />
      <ActivityGrid data={[3]} title="One day" cell={12} />
    </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