Skip to content
Calm motion: animations on this site only fade, with no movement

HeatmapCalendar ​

Contribution-style grid, one square per day

A year of activity at a glance: commits, workouts, check-ins. One column per week, one square per day. The darker the square, the more happened. For picking a date to enter, use Calendar or DatePicker.

Basic
855 commits in 53 weeks
click a day; arrows move by day and week
  • Pass data as { "2026-09-27": 4 }. Days left out count as 0. Intensity is ink, not accent: the accent only marks the day you picked.
  • The darkest step is the largest value in data. Set max to fix the scale across several grids. levels sets how many steps there are above zero (default 4).
  • end is the last day shown (default today), weeks how many columns (default 53), weekStart the first row (1 Monday, 0 Sunday). Month and weekday labels follow locale.
  • Every day is a button with a full label ("3 commits on Thu, Oct 1, 2026"). One tab stop. ↑ ↓ move by day, ← → by week (mirrored under RTL), Home / End jump to the first and last day. Click or press Enter to pick a day, again to clear it.
  • The line under the grid shows the hovered or focused day, and the total otherwise.

Usage ​

ts
import { BlessHeatmapCalendar } from "blessing-ui";

API ​

Props

NameTypeDefaultDescription
dataRecord<string, number>{}counts by ISO date: `{ "2026-09-27": 4 }`; missing days are 0
endstring—last day shown, ISO; defaults to today
weeksnumber53
weekStart0 | 11first row of each column: 0 Sunday, 1 Monday
levelsnumber4intensity steps above zero
maxnumber—the count that fills the darkest step; defaults to the largest value in `data`
localestring—
unitstring"contribution"what is counted, singular: "contribution"
legendbooleantrue
labelstring"Activity"
modelValuestring | nullnullthe picked day

Events

NamePayloadDescription
update:modelValue[value: string | null]

Released under the MIT License. Character names and artwork belong to their owners.