Search documentation

Search for a page or component.

Activity Heatmap

A calendar heatmap of daily activity, in the style of a contribution graph.

Sep
Oct
Nov
Dec
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
LessMore
import { ActivityHeatmap } from "@/components/ui/activity-heatmap"

// Deterministic sample data so the demo is stable between renders.

A calendar heatmap for shadcn/ui in the style of GitHub's contribution graph. Give it dated values and it lays out the year in weeks, with a tooltip per day and intensity steps drawn from your theme color.

Installation

pnpm dlx shadcn@latest add @dashboardcn/activity-heatmap

Also installs tooltip from shadcn/ui if missing.

Usage

import { ActivityHeatmap } from "@/components/ui/activity-heatmap"

<ActivityHeatmap
  data={[
    { date: "2026-09-01", value: 12 },
    { date: "2026-09-02", value: 3 },
  ]}
  unit="deploys"
/>