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
- Pass
dataas{ "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. Setmaxto fix the scale across several grids.levelssets how many steps there are above zero (default 4). endis the last day shown (default today),weekshow many columns (default 53),weekStartthe first row (1Monday,0Sunday). Month and weekday labels followlocale.- 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
| Name | Type | Default | Description |
|---|---|---|---|
data | Record<string, number> | {} | counts by ISO date: `{ "2026-09-27": 4 }`; missing days are 0 |
end | string | — | last day shown, ISO; defaults to today |
weeks | number | 53 | |
weekStart | 0 | 1 | 1 | first row of each column: 0 Sunday, 1 Monday |
levels | number | 4 | intensity steps above zero |
max | number | — | the count that fills the darkest step; defaults to the largest value in `data` |
locale | string | — | |
unit | string | "contribution" | what is counted, singular: "contribution" |
legend | boolean | true | |
label | string | "Activity" | |
modelValue | string | null | null | the picked day |
Events
| Name | Payload | Description |
|---|---|---|
update:modelValue | [value: string | null] |