Activity Heatmap

NEW

A GitHub-style contribution calendar and weekday-by-hour activity grid with automatic column fitting, quarterly color levels, hover tooltips, and keyboard navigation.

Activity

Daily contributions

1,227 contributions in the last 11 months

Peak Mon, Dec 22, 2025 · 17

NovDecJanFebMarAprMayJunJulAugSepOctMonWedFri

LessMore

Installation

Add the component directly to your repository using shadcn CLI:

npx shadcn@latest add Surajmaurya1/easyui/activity-heatmap

API Reference

PropTypeDefaultDescription
mode"calendar" | "hours""calendar"One cell per day or a weekday-by-hour grid
dataHeatDay[]—Calendar data as { date: "YYYY-MM-DD" | Date, value: number } entries
matrixnumber[][]—Hours-mode matrix with 7 rows (weekdays) and 24 columns (hours)
rowLabelsstring[]["Mon", … , "Sun"]Row names used in hours mode
weeksnumber53Maximum number of weeks to show in calendar mode
endDatestring | Date—Last day displayed; defaults to the latest date in the data
weekStart0 | 10First day of the week: 0 for Sunday, 1 for Monday
colorstring"#34d399"Base color mixed into the activity levels
unitstring"contributions"Plural noun used in the summary and tooltip
minCellnumber11Smallest cell size before calendar columns are dropped
animatedbooleantrueEnables the staggered cell entrance animation
ariaLabelstringauto-generatedAccessible description for the heatmap image role
classNamestring""Additional CSS classes for the heatmap wrapper