Controls

Calendar Heatmap

Effect
Preview
Reduced motion

Simulates prefers-reduced-motion for the demo. Off follows your system setting.

Keyboard stepping

Steps focus through the demo with ] and [. Tab, arrows, and Escape stay native so the component behaves as shipped.

Calendar Heatmap

Contributions over six months
DateValue
2026-05-047
2026-05-059
2026-05-0610
2026-05-0711
2026-05-0812
2026-05-093
2026-05-102
2026-05-1110
2026-05-129
2026-05-138
2026-05-148
2026-05-158
2026-05-160
2026-05-170
2026-05-1810
2026-05-1911
2026-05-2012
2026-05-2113
2026-05-2214
2026-05-233
2026-05-243
2026-05-2511
2026-05-2610
2026-05-278
2026-05-287
2026-05-296
2026-05-300
2026-05-310
2026-06-015
2026-06-026
2026-06-037
2026-06-048
2026-06-058
2026-06-063
2026-06-073
2026-06-087
2026-06-095
2026-06-104
2026-06-112
2026-06-121
2026-06-130
2026-06-140
2026-06-150
2026-06-161
2026-06-172
2026-06-184
2026-06-195
2026-06-203
2026-06-213
2026-06-227
2026-06-236
2026-06-246
2026-06-255
2026-06-264
2026-06-270
2026-06-280
2026-06-294
2026-06-304
2026-07-016
2026-07-027
2026-07-039
2026-07-042
2026-07-053
2026-07-0612
2026-07-0713
2026-07-0812
2026-07-0911
2026-07-1010
2026-07-111
2026-07-120
2026-07-138
2026-07-148
2026-07-159
2026-07-169
2026-07-1711
2026-07-182
2026-07-193
2026-07-2013
2026-07-2113
2026-07-2212
2026-07-2311
2026-07-2410
2026-07-251
2026-07-261
2026-07-275
2026-07-284
2026-07-294
2026-07-304
2026-07-315
2026-08-011
2026-08-022
2026-08-037
2026-08-047
2026-08-057
2026-08-066
2026-08-075
2026-08-082
2026-08-091
2026-08-101
2026-08-110
2026-08-120
2026-08-130
2026-08-141
2026-08-151
2026-08-162
2026-08-175
2026-08-186
2026-08-197
2026-08-207
2026-08-217
2026-08-222
2026-08-232
2026-08-245
2026-08-254
2026-08-264
2026-08-274
2026-08-285
2026-08-291
2026-08-301
2026-08-319
2026-09-0111
2026-09-0212
2026-09-0313
2026-09-0413
2026-09-053
2026-09-062
2026-09-0711
2026-09-0810
2026-09-099
2026-09-108
2026-09-118
2026-09-120
2026-09-131
2026-09-1410
2026-09-1511
2026-09-1612
2026-09-1712
2026-09-1812
2026-09-193
2026-09-203
2026-09-219
2026-09-228
2026-09-236
2026-09-245
2026-09-254
2026-09-260
2026-09-270
2026-09-284
2026-09-294
2026-09-305
2026-10-016
2026-10-027
2026-10-033
2026-10-043
2026-10-055
2026-10-064
2026-10-073
2026-10-082
2026-10-091
2026-10-100
2026-10-110
2026-10-121
2026-10-132
2026-10-144
2026-10-155
2026-10-166
2026-10-173
2026-10-183
2026-10-198
2026-10-208
2026-10-217
2026-10-226
2026-10-236
2026-10-240
2026-10-250
2026-10-266
2026-10-277
2026-10-288
2026-10-2910

Calendar Heatmap

Days laid out in week columns, shaded by how much happened on each.

Installation

npx shadcn@latest add ikislay/pixel-ui/calendar-heatmap

How to use

import { CalendarHeatmap } from "@/components/ui/calendar-heatmap"
const data = [
{ date: "2026-03-02", value: 4 },
{ date: "2026-03-03", value: 9 },
{ date: "2026-03-04", value: 0 },
]
export function Demo() {
return <CalendarHeatmap label="Contributions" data={data} />
}

Source Code

// Loading…

Props

Options you can pass to customize this component.

Prop
Type
Description
data*
{ date: string; value: number }[]

One entry per day, with an ISO date like 2026-03-04. Weeks start on Monday and missing days stay blank.

label*
string

Names the chart for screen readers and captions its data table.

format
(value: number) => string

Formats values wherever the chart shows them. Defaults to short numbers like 12.4K.

color
string

Any CSS color. Days are shaded in five steps of it, from a faint tint to full.

className
string

Merged onto the root element.