073
A year of daily activity as a calendar heatmap: hover or arrow through any day, see which streak it belongs to, and point at a streak callout to light up its run.
akaheatmap·calendar·contributions
Run this in any project set up for the shadcn CLI. It copies the Streak Heatmap source into your components folder, so the code is yours to change.
npx shadcn@latest add https://devl.dev/r/streak-heatmap.jsonImport it and render it. Every prop has a typed default, so it works straight away, and you pass your own data when you’re ready.
import { StreakHeatmap } from "@/components/streak-heatmap";
export default function Page() {
return <StreakHeatmap />;
}A free React component in the Numbers collection, written in TypeScript with Tailwind CSS on coss ui. MIT licensed.
Read from the Streak Heatmap source. Everything is optional unless it says required.
| Prop | Type | Default |
|---|---|---|
| title | string | "Activity" |
| data | StreakDay[] | defaultData |
| endDate | string | — |
| unit | [string, string] | ["contribution", "contributions"] |
| color | string | "var(--color-emerald-500)" |
| weekStart | 0 | 1 | 1 |
| locale | string | "en-US" |
| className | string | — |