Activity heatmap
A calendar grid of week columns with each day shaded by its activity level.
import { ActivityHeatmap } from '@uthereal/ui/activity-heatmap'Activity heatmap playground
| Date | Count |
|---|---|
| Jan 1, 2025 | 4 |
| Jan 2, 2025 | 5 |
| Jan 3, 2025 | 6 |
| Jan 4, 2025 | 3 |
| Jan 5, 2025 | 3 |
| Jan 6, 2025 | 7 |
| Jan 7, 2025 | 6 |
| Jan 8, 2025 | 6 |
| Jan 9, 2025 | 5 |
| Jan 10, 2025 | 4 |
| Jan 11, 2025 | 0 |
| Jan 12, 2025 | 0 |
| Jan 13, 2025 | 4 |
| Jan 14, 2025 | 5 |
| Jan 15, 2025 | 6 |
| Jan 16, 2025 | 6 |
| Jan 17, 2025 | 7 |
| Jan 18, 2025 | 4 |
| Jan 19, 2025 | 4 |
| Jan 20, 2025 | 8 |
| Jan 21, 2025 | 7 |
| Jan 22, 2025 | 6 |
| Jan 23, 2025 | 5 |
| Jan 24, 2025 | 4 |
| Jan 25, 2025 | 0 |
| Jan 26, 2025 | 0 |
| Jan 27, 2025 | 3 |
| Jan 28, 2025 | 3 |
| Jan 29, 2025 | 3 |
| Jan 30, 2025 | 4 |
| Jan 31, 2025 | 5 |
| Feb 1, 2025 | 1 |
| Feb 2, 2025 | 2 |
| Feb 3, 2025 | 5 |
| Feb 4, 2025 | 4 |
| Feb 5, 2025 | 4 |
| Feb 6, 2025 | 3 |
| Feb 7, 2025 | 2 |
| Feb 8, 2025 | 0 |
| Feb 9, 2025 | 0 |
| Feb 10, 2025 | 0 |
| Feb 11, 2025 | 0 |
| Feb 12, 2025 | 1 |
| Feb 13, 2025 | 2 |
| Feb 14, 2025 | 3 |
| Feb 15, 2025 | 0 |
| Feb 16, 2025 | 0 |
| Feb 17, 2025 | 4 |
| Feb 18, 2025 | 4 |
| Feb 19, 2025 | 4 |
| Feb 20, 2025 | 3 |
| Feb 21, 2025 | 2 |
| Feb 22, 2025 | 0 |
| Feb 23, 2025 | 0 |
| Feb 24, 2025 | 1 |
| Feb 25, 2025 | 2 |
| Feb 26, 2025 | 2 |
| Feb 27, 2025 | 3 |
| Feb 28, 2025 | 4 |
| Mar 1, 2025 | 2 |
| Mar 2, 2025 | 3 |
| Mar 3, 2025 | 7 |
| Mar 4, 2025 | 7 |
| Mar 5, 2025 | 7 |
| Mar 6, 2025 | 6 |
| Mar 7, 2025 | 6 |
| Mar 8, 2025 | 1 |
| Mar 9, 2025 | 1 |
| Mar 10, 2025 | 4 |
| Mar 11, 2025 | 4 |
| Mar 12, 2025 | 4 |
| Mar 13, 2025 | 5 |
| Mar 14, 2025 | 6 |
| Mar 15, 2025 | 3 |
| Mar 16, 2025 | 4 |
| Mar 17, 2025 | 8 |
| Mar 18, 2025 | 8 |
| Mar 19, 2025 | 7 |
| Mar 20, 2025 | 7 |
| Mar 21, 2025 | 6 |
| Mar 22, 2025 | 1 |
| Mar 23, 2025 | 0 |
| Mar 24, 2025 | 3 |
| Mar 25, 2025 | 2 |
| Mar 26, 2025 | 2 |
| Mar 27, 2025 | 3 |
| Mar 28, 2025 | 3 |
| Mar 29, 2025 | 0 |
| Mar 30, 2025 | 1 |
| Mar 31, 2025 | 5 |
| Apr 1, 2025 | 5 |
| Apr 2, 2025 | 5 |
| Apr 3, 2025 | 4 |
| Apr 4, 2025 | 3 |
| Apr 5, 2025 | 0 |
| Apr 6, 2025 | 0 |
| Apr 7, 2025 | 1 |
| Apr 8, 2025 | 0 |
| Apr 9, 2025 | 0 |
| Apr 10, 2025 | 0 |
| Apr 11, 2025 | 1 |
| Apr 12, 2025 | 0 |
| Apr 13, 2025 | 0 |
| Apr 14, 2025 | 4 |
| Apr 15, 2025 | 4 |
| Apr 16, 2025 | 4 |
| Apr 17, 2025 | 4 |
| Apr 18, 2025 | 4 |
| Apr 19, 2025 | 0 |
| Apr 20, 2025 | 0 |
| Apr 21, 2025 | 2 |
| Apr 22, 2025 | 2 |
| Apr 23, 2025 | 2 |
| Apr 24, 2025 | 2 |
| Apr 25, 2025 | 3 |
| Apr 26, 2025 | 0 |
| Apr 27, 2025 | 1 |
| Apr 28, 2025 | 6 |
| Apr 29, 2025 | 7 |
| Apr 30, 2025 | 7 |
| May 1, 2025 | 7 |
| May 2, 2025 | 7 |
| May 3, 2025 | 3 |
| May 4, 2025 | 2 |
| May 5, 2025 | 5 |
| May 6, 2025 | 4 |
| May 7, 2025 | 4 |
| May 8, 2025 | 4 |
| May 9, 2025 | 4 |
| May 10, 2025 | 2 |
| May 11, 2025 | 2 |
| May 12, 2025 | 7 |
| May 13, 2025 | 7 |
| May 14, 2025 | 8 |
| May 15, 2025 | 7 |
| May 16, 2025 | 7 |
| May 17, 2025 | 3 |
| May 18, 2025 | 2 |
| May 19, 2025 | 4 |
| May 20, 2025 | 3 |
| May 21, 2025 | 2 |
| May 22, 2025 | 2 |
| May 23, 2025 | 2 |
| May 24, 2025 | 0 |
| May 25, 2025 | 0 |
| May 26, 2025 | 4 |
| May 27, 2025 | 4 |
| May 28, 2025 | 5 |
| May 29, 2025 | 5 |
| May 30, 2025 | 4 |
| May 31, 2025 | 0 |
| Jun 1, 2025 | 0 |
| Jun 2, 2025 | 2 |
| Jun 3, 2025 | 1 |
| Jun 4, 2025 | 0 |
| Jun 5, 2025 | 0 |
| Jun 6, 2025 | 0 |
| Jun 7, 2025 | 0 |
| Jun 8, 2025 | 0 |
| Jun 9, 2025 | 2 |
| Jun 10, 2025 | 3 |
| Jun 11, 2025 | 4 |
| Jun 12, 2025 | 4 |
| Jun 13, 2025 | 5 |
| Jun 14, 2025 | 1 |
| Jun 15, 2025 | 1 |
| Jun 16, 2025 | 3 |
| Jun 17, 2025 | 3 |
| Jun 18, 2025 | 2 |
| Jun 19, 2025 | 2 |
| Jun 20, 2025 | 2 |
| Jun 21, 2025 | 0 |
| Jun 22, 2025 | 0 |
| Jun 23, 2025 | 4 |
| Jun 24, 2025 | 5 |
| Jun 25, 2025 | 6 |
| Jun 26, 2025 | 7 |
| Jun 27, 2025 | 7 |
| Jun 28, 2025 | 4 |
| Jun 29, 2025 | 4 |
| Jun 30, 2025 | 6 |
| Jul 1, 2025 | 6 |
| Jul 2, 2025 | 5 |
| Jul 3, 2025 | 4 |
| Jul 4, 2025 | 4 |
| Jul 5, 2025 | 1 |
| Jul 6, 2025 | 1 |
| Jul 7, 2025 | 5 |
| Jul 8, 2025 | 6 |
| Jul 9, 2025 | 7 |
| Jul 10, 2025 | 7 |
| Jul 11, 2025 | 7 |
| Jul 12, 2025 | 4 |
| Jul 13, 2025 | 3 |
| Jul 14, 2025 | 6 |
| Jul 15, 2025 | 5 |
| Jul 16, 2025 | 4 |
| Jul 17, 2025 | 3 |
| Jul 18, 2025 | 2 |
| Jul 19, 2025 | 0 |
| Jul 20, 2025 | 0 |
| Jul 21, 2025 | 2 |
| Jul 22, 2025 | 3 |
| Jul 23, 2025 | 4 |
| Jul 24, 2025 | 4 |
| Jul 25, 2025 | 4 |
| Jul 26, 2025 | 1 |
| Jul 27, 2025 | 1 |
| Jul 28, 2025 | 3 |
| Jul 29, 2025 | 3 |
| Jul 30, 2025 | 2 |
| Jul 31, 2025 | 1 |
| Aug 1, 2025 | 0 |
| Aug 2, 2025 | 0 |
| Aug 3, 2025 | 0 |
| Aug 4, 2025 | 1 |
| Aug 5, 2025 | 2 |
| Aug 6, 2025 | 2 |
| Aug 7, 2025 | 3 |
| Aug 8, 2025 | 4 |
| Aug 9, 2025 | 1 |
| Aug 10, 2025 | 1 |
| Aug 11, 2025 | 5 |
| Aug 12, 2025 | 4 |
| Aug 13, 2025 | 4 |
| Aug 14, 2025 | 3 |
| Aug 15, 2025 | 2 |
| Aug 16, 2025 | 0 |
| Aug 17, 2025 | 0 |
| Aug 18, 2025 | 3 |
| Aug 19, 2025 | 4 |
| Aug 20, 2025 | 5 |
| Aug 21, 2025 | 6 |
| Aug 22, 2025 | 7 |
| Aug 23, 2025 | 4 |
| Aug 24, 2025 | 4 |
| Aug 25, 2025 | 8 |
| Aug 26, 2025 | 7 |
| Aug 27, 2025 | 6 |
| Aug 28, 2025 | 6 |
| Aug 29, 2025 | 5 |
| Aug 30, 2025 | 1 |
| Aug 31, 2025 | 0 |
| Sep 1, 2025 | 4 |
| Sep 2, 2025 | 5 |
| Sep 3, 2025 | 5 |
| Sep 4, 2025 | 6 |
| Sep 5, 2025 | 7 |
| Sep 6, 2025 | 4 |
| Sep 7, 2025 | 4 |
| Sep 8, 2025 | 7 |
| Sep 9, 2025 | 6 |
| Sep 10, 2025 | 5 |
| Sep 11, 2025 | 4 |
| Sep 12, 2025 | 3 |
| Sep 13, 2025 | 0 |
| Sep 14, 2025 | 0 |
| Sep 15, 2025 | 1 |
| Sep 16, 2025 | 2 |
| Sep 17, 2025 | 2 |
| Sep 18, 2025 | 3 |
| Sep 19, 2025 | 3 |
| Sep 20, 2025 | 0 |
| Sep 21, 2025 | 1 |
| Sep 22, 2025 | 4 |
| Sep 23, 2025 | 4 |
| Sep 24, 2025 | 3 |
| Sep 25, 2025 | 2 |
| Sep 26, 2025 | 1 |
| Sep 27, 2025 | 0 |
| Sep 28, 2025 | 0 |
| Sep 29, 2025 | 0 |
| Sep 30, 2025 | 0 |
| Oct 1, 2025 | 1 |
| Oct 2, 2025 | 2 |
| Oct 3, 2025 | 3 |
| Oct 4, 2025 | 0 |
| Oct 5, 2025 | 1 |
| Oct 6, 2025 | 5 |
| Oct 7, 2025 | 5 |
| Oct 8, 2025 | 5 |
| Oct 9, 2025 | 4 |
| Oct 10, 2025 | 4 |
| Oct 11, 2025 | 0 |
| Oct 12, 2025 | 0 |
| Oct 13, 2025 | 3 |
| Oct 14, 2025 | 3 |
| Oct 15, 2025 | 3 |
| Oct 16, 2025 | 4 |
| Oct 17, 2025 | 5 |
| Oct 18, 2025 | 3 |
| Oct 19, 2025 | 4 |
| Oct 20, 2025 | 8 |
| Oct 21, 2025 | 8 |
| Oct 22, 2025 | 8 |
| Oct 23, 2025 | 7 |
| Oct 24, 2025 | 6 |
| Oct 25, 2025 | 2 |
| Oct 26, 2025 | 1 |
| Oct 27, 2025 | 4 |
| Oct 28, 2025 | 4 |
| Oct 29, 2025 | 4 |
| Oct 30, 2025 | 4 |
| Oct 31, 2025 | 5 |
| Nov 1, 2025 | 2 |
| Nov 2, 2025 | 3 |
| Nov 3, 2025 | 7 |
| Nov 4, 2025 | 7 |
| Nov 5, 2025 | 7 |
| Nov 6, 2025 | 6 |
| Nov 7, 2025 | 5 |
| Nov 8, 2025 | 0 |
| Nov 9, 2025 | 0 |
| Nov 10, 2025 | 2 |
| Nov 11, 2025 | 1 |
| Nov 12, 2025 | 1 |
| Nov 13, 2025 | 1 |
| Nov 14, 2025 | 2 |
| Nov 15, 2025 | 0 |
| Nov 16, 2025 | 0 |
| Nov 17, 2025 | 4 |
| Nov 18, 2025 | 4 |
| Nov 19, 2025 | 4 |
| Nov 20, 2025 | 4 |
| Nov 21, 2025 | 3 |
| Nov 22, 2025 | 0 |
| Nov 23, 2025 | 0 |
| Nov 24, 2025 | 1 |
| Nov 25, 2025 | 0 |
| Nov 26, 2025 | 0 |
| Nov 27, 2025 | 1 |
| Nov 28, 2025 | 1 |
| Nov 29, 2025 | 0 |
| Nov 30, 2025 | 0 |
| Dec 1, 2025 | 4 |
| Dec 2, 2025 | 5 |
| Dec 3, 2025 | 5 |
| Dec 4, 2025 | 5 |
| Dec 5, 2025 | 5 |
| Dec 6, 2025 | 1 |
| Dec 7, 2025 | 0 |
| Dec 8, 2025 | 3 |
| Dec 9, 2025 | 3 |
| Dec 10, 2025 | 3 |
| Dec 11, 2025 | 3 |
| Dec 12, 2025 | 4 |
| Dec 13, 2025 | 1 |
| Dec 14, 2025 | 2 |
| Dec 15, 2025 | 7 |
| Dec 16, 2025 | 7 |
| Dec 17, 2025 | 8 |
| Dec 18, 2025 | 8 |
| Dec 19, 2025 | 8 |
| Dec 20, 2025 | 3 |
| Dec 21, 2025 | 3 |
| Dec 22, 2025 | 5 |
| Dec 23, 2025 | 4 |
| Dec 24, 2025 | 4 |
| Dec 25, 2025 | 4 |
| Dec 26, 2025 | 4 |
| Dec 27, 2025 | 1 |
| Dec 28, 2025 | 2 |
| Dec 29, 2025 | 6 |
| Dec 30, 2025 | 6 |
| Dec 31, 2025 | 7 |
Overview
An activity heatmap displays up to 400 days as seven-row week columns shaded by daily count, revealing weekly and seasonal cadence at a glance. A summary header above the grid reports the total (for example, "1,284 deploys in 2026") while title names the figure for assistive technology; optional host controls such as a range selector sit in actions. Zero-activity days render on a faint neutral square, and active days use four accent tints mapped by threshold. Month labels run along the top, weekday labels (Monday, Wednesday, Friday) run along the start edge, a floating bubble reads the active day, level swatches filter-preview their tier, and a data table lists every day.
Use an activity heatmap for daily event counts across months such as deploys, commits, or logins. For continuous trends across time, use a line chart. For long, zoomable series, use a brush chart.
Usage
import { ActivityHeatmap } from '@uthereal/ui/activity-heatmap'
export function Deploys({ days }: { days: { date: string; count: number }[] }) {
return (
<ActivityHeatmap
title="Deploys"
days={days}
period="2026"
onValueChange={(date) => console.log(date)}
countLabels={{ one: '{count} deploy', other: '{count} deploys' }}
/>
)
}Supply unique ISO dates (YYYY-MM-DD) in UTC. The grid spans continuously from the earliest to the latest supplied date (at most 400 days), and omitted calendar days count as zero. Pass value and onValueChange to control the selected day.
Examples
Week start, thresholds, and selection
weekStartsOn sets the first row of each column (sunday or monday). thresholds fixes the upper bounds of levels one through three (defaulting to quarters of the busiest day). size sets the maximum day square size (12, 15, or 18 px), period completes the summary header, countLabels customizes plural labels, and defaultValue pre-selects a day.
| Date | Count |
|---|---|
| May 3, 2026 | 2 |
| May 4, 2026 | 4 |
| May 5, 2026 | 6 |
| May 6, 2026 | 3 |
| May 7, 2026 | 2 |
| May 8, 2026 | 4 |
| May 9, 2026 | 4 |
| May 10, 2026 | 1 |
| May 11, 2026 | 2 |
| May 12, 2026 | 3 |
| May 13, 2026 | 0 |
| May 14, 2026 | 0 |
| May 15, 2026 | 2 |
| May 16, 2026 | 2 |
| May 17, 2026 | 0 |
| May 18, 2026 | 0 |
| May 19, 2026 | 0 |
| May 20, 2026 | 0 |
| May 21, 2026 | 0 |
| May 22, 2026 | 1 |
| May 23, 2026 | 2 |
| May 24, 2026 | 0 |
| May 25, 2026 | 0 |
| May 26, 2026 | 1 |
| May 27, 2026 | 0 |
| May 28, 2026 | 0 |
| May 29, 2026 | 3 |
| May 30, 2026 | 5 |
| May 31, 2026 | 3 |
| Jun 1, 2026 | 4 |
| Jun 2, 2026 | 4 |
| Jun 3, 2026 | 1 |
| Jun 4, 2026 | 1 |
| Jun 5, 2026 | 3 |
| Jun 6, 2026 | 5 |
| Jun 7, 2026 | 4 |
| Jun 8, 2026 | 5 |
| Jun 9, 2026 | 5 |
| Jun 10, 2026 | 1 |
| Jun 11, 2026 | 0 |
| Jun 12, 2026 | 1 |
| Jun 13, 2026 | 2 |
| Jun 14, 2026 | 1 |
| Jun 15, 2026 | 2 |
| Jun 16, 2026 | 3 |
| Jun 17, 2026 | 0 |
| Jun 18, 2026 | 0 |
| Jun 19, 2026 | 0 |
| Jun 20, 2026 | 0 |
| Jun 21, 2026 | 0 |
| Jun 22, 2026 | 0 |
| Jun 23, 2026 | 2 |
| Jun 24, 2026 | 0 |
| Jun 25, 2026 | 0 |
| Jun 26, 2026 | 1 |
| Jun 27, 2026 | 2 |
| Jun 28, 2026 | 0 |
| Jun 29, 2026 | 1 |
| Jun 30, 2026 | 3 |
| Jul 1, 2026 | 2 |
| Jul 2, 2026 | 2 |
| Jul 3, 2026 | 4 |
| Jul 4, 2026 | 5 |
| Jul 5, 2026 | 2 |
| Jul 6, 2026 | 3 |
| Jul 7, 2026 | 4 |
| Jul 8, 2026 | 2 |
| Jul 9, 2026 | 2 |
| Jul 10, 2026 | 4 |
| Jul 11, 2026 | 5 |
| Jul 12, 2026 | 2 |
| Jul 13, 2026 | 2 |
| Jul 14, 2026 | 2 |
| Jul 15, 2026 | 0 |
| Jul 16, 2026 | 0 |
| Jul 17, 2026 | 1 |
| Jul 18, 2026 | 2 |
| Jul 19, 2026 | 0 |
| Jul 20, 2026 | 1 |
| Jul 21, 2026 | 1 |
| Jul 22, 2026 | 0 |
| Jul 23, 2026 | 0 |
| Jul 24, 2026 | 0 |
| Jul 25, 2026 | 2 |
| Jul 26, 2026 | 0 |
| Jul 27, 2026 | 2 |
| Jul 28, 2026 | 3 |
| Jul 29, 2026 | 0 |
| Jul 30, 2026 | 0 |
| Jul 31, 2026 | 2 |
| Aug 1, 2026 | 3 |
| Aug 2, 2026 | 2 |
| Aug 3, 2026 | 4 |
| Aug 4, 2026 | 6 |
| Aug 5, 2026 | 3 |
| Aug 6, 2026 | 2 |
| Aug 7, 2026 | 3 |
| Aug 8, 2026 | 4 |
| Aug 9, 2026 | 2 |
| Aug 10, 2026 | 4 |
| Aug 11, 2026 | 5 |
| Aug 12, 2026 | 2 |
| Aug 13, 2026 | 1 |
| Aug 14, 2026 | 2 |
| Aug 15, 2026 | 2 |
| Aug 16, 2026 | 0 |
| Aug 17, 2026 | 0 |
| Aug 18, 2026 | 2 |
| Aug 19, 2026 | 0 |
| Aug 20, 2026 | 0 |
| Aug 21, 2026 | 1 |
| Aug 22, 2026 | 1 |
| Aug 23, 2026 | 0 |
| Aug 24, 2026 | 0 |
| Aug 25, 2026 | 0 |
| Aug 26, 2026 | 0 |
| Aug 27, 2026 | 0 |
| Aug 28, 2026 | 2 |
| Aug 29, 2026 | 3 |
| Aug 30, 2026 | 1 |
| Aug 31, 2026 | 2 |
| Sep 1, 2026 | 3 |
| Sep 2, 2026 | 0 |
| Sep 3, 2026 | 1 |
| Sep 4, 2026 | 4 |
| Sep 5, 2026 | 6 |
| Sep 6, 2026 | 4 |
| Sep 7, 2026 | 4 |
| Sep 8, 2026 | 5 |
| Sep 9, 2026 | 1 |
| Sep 10, 2026 | 1 |
| Sep 11, 2026 | 3 |
| Sep 12, 2026 | 4 |
| Sep 13, 2026 | 3 |
| Sep 14, 2026 | 3 |
| Sep 15, 2026 | 4 |
| Sep 16, 2026 | 0 |
| Sep 17, 2026 | 0 |
| Sep 18, 2026 | 0 |
| Sep 19, 2026 | 1 |
| Sep 20, 2026 | 0 |
| Sep 21, 2026 | 1 |
| Sep 22, 2026 | 2 |
| Sep 23, 2026 | 0 |
| Sep 24, 2026 | 0 |
| Sep 25, 2026 | 0 |
| Sep 26, 2026 | 0 |
| Sep 27, 2026 | 0 |
| Sep 28, 2026 | 1 |
| Sep 29, 2026 | 3 |
| Sep 30, 2026 | 1 |
| Oct 1, 2026 | 1 |
| Oct 2, 2026 | 3 |
| Oct 3, 2026 | 3 |
| Oct 4, 2026 | 1 |
| Oct 5, 2026 | 3 |
| Oct 6, 2026 | 5 |
| Oct 7, 2026 | 2 |
| Oct 8, 2026 | 3 |
| Oct 9, 2026 | 5 |
| Oct 10, 2026 | 5 |
| Oct 11, 2026 | 2 |
| Oct 12, 2026 | 3 |
| Oct 13, 2026 | 3 |
| Oct 14, 2026 | 1 |
| Oct 15, 2026 | 1 |
| Oct 16, 2026 | 3 |
| Oct 17, 2026 | 4 |
| Oct 18, 2026 | 1 |
Behavior
Counts format through countLabels and day totals through dayLabels using locale plural rules. Day cells scale automatically between 9 px and the size ceiling with a 3 px gap and 28% corner radius. When the grid exceeds the container width, it scrolls horizontally, opens on the latest weeks, and pins the weekday column. In RTL (dir="rtl"), weeks run from right to left.
Hovering or focusing a level swatch dims all other levels and reveals levelCaption ("12 days with 1–3 deploys"; day count only below 440 px width). Pressing a swatch pins that level preview until pressed again or cleared with Escape. Clicking a day or pressing Enter/Space selects it with a selection ring. The floating bubble tracks the hovered or focused day, hiding 110 ms after pointer leave (2.4 s after a tap).
API reference
These serializable arguments and defaults come directly from the component schema.
| Argument | Type / default | Description |
|---|---|---|
title | stringDefault: "Activity" | Names the figure for assistive technology and the data table caption; as in Arc, the visible heading is the summary line. |
description | string— | One or two sentences on what the chart shows, below the title; omit it when the title says enough. |
tableToggle | booleanDefault: false | Show a button that reveals the data table. The table is always available to assistive technology. |
tableLabel | stringDefault: "Data table" | Name of the data table button. |
pointLabel | stringDefault: "{count}, {date}" | Accessible name of each day cell, read as focus moves to it (Arc). {count} (the count label, or zeroLabel) and {date} (the long date) are filled in. |
valueFormat | NumberFormat— | How values appear in the tooltip, table and axis: decimal, percent or currency, with fraction digits. Axis ticks are compacted (12.9K). |
locale | string— | BCP 47 locale for numbers, dates, month and weekday names and plural forms. Omit it to inherit the application locale (en-US by default). |
days | ActivityDay[]Default: [{"date":"2026-07-01","count":0},{"date":"2026-07-02","count":2},{"date":"2026-07-03","count":5},{"date":"2026-07-04","count":1},{"date":"2026-07-05","count":0},{"date":"2026-07-06","count":7},{"date":"2026-07-07","count":3},{"date":"2026-07-08","count":9},{"date":"2026-07-09","count":4},{"date":"2026-07-10","count":0},{"date":"2026-07-11","count":1},{"date":"2026-07-12","count":6},{"date":"2026-07-13","count":0},{"date":"2026-07-14","count":2},{"date":"2026-07-15","count":5},{"date":"2026-07-16","count":1},{"date":"2026-07-17","count":0},{"date":"2026-07-18","count":7},{"date":"2026-07-19","count":3},{"date":"2026-07-20","count":9},{"date":"2026-07-21","count":4},{"date":"2026-07-22","count":0},{"date":"2026-07-23","count":1},{"date":"2026-07-24","count":6},{"date":"2026-07-25","count":0},{"date":"2026-07-26","count":2},{"date":"2026-07-27","count":5},{"date":"2026-07-28","count":1},{"date":"2026-07-29","count":0},{"date":"2026-07-30","count":7},{"date":"2026-07-31","count":3},{"date":"2026-08-01","count":9},{"date":"2026-08-02","count":4},{"date":"2026-08-03","count":0},{"date":"2026-08-04","count":1},{"date":"2026-08-05","count":6},{"date":"2026-08-06","count":0},{"date":"2026-08-07","count":2},{"date":"2026-08-08","count":5},{"date":"2026-08-09","count":1},{"date":"2026-08-10","count":0},{"date":"2026-08-11","count":7},{"date":"2026-08-12","count":3},{"date":"2026-08-13","count":9},{"date":"2026-08-14","count":4},{"date":"2026-08-15","count":0},{"date":"2026-08-16","count":1},{"date":"2026-08-17","count":6},{"date":"2026-08-18","count":0},{"date":"2026-08-19","count":2},{"date":"2026-08-20","count":5},{"date":"2026-08-21","count":1},{"date":"2026-08-22","count":0},{"date":"2026-08-23","count":7},{"date":"2026-08-24","count":3},{"date":"2026-08-25","count":9},{"date":"2026-08-26","count":4},{"date":"2026-08-27","count":0},{"date":"2026-08-28","count":1},{"date":"2026-08-29","count":6},{"date":"2026-08-30","count":0},{"date":"2026-08-31","count":2},{"date":"2026-09-01","count":5},{"date":"2026-09-02","count":1},{"date":"2026-09-03","count":0},{"date":"2026-09-04","count":7},{"date":"2026-09-05","count":3},{"date":"2026-09-06","count":9},{"date":"2026-09-07","count":4},{"date":"2026-09-08","count":0},{"date":"2026-09-09","count":1},{"date":"2026-09-10","count":6},{"date":"2026-09-11","count":0},{"date":"2026-09-12","count":2},{"date":"2026-09-13","count":5},{"date":"2026-09-14","count":1},{"date":"2026-09-15","count":0},{"date":"2026-09-16","count":7},{"date":"2026-09-17","count":3},{"date":"2026-09-18","count":9},{"date":"2026-09-19","count":4},{"date":"2026-09-20","count":0},{"date":"2026-09-21","count":1},{"date":"2026-09-22","count":6}] | Days with a count of zero or more, each date once. The grid spans the first to the last date (at most 400 days, in UTC); days that are missing count zero. |
weekStartsOn | sunday | mondayDefault: "sunday" | Whether each week column starts on Sunday or Monday. |
thresholds | [number, number, number]— | Upper bounds of levels one to three, ascending; counts above the last are level four, zero is its own level. Omit it to use quarters of the busiest day. |
countLabels | ActivityCountLabelsDefault: {"one":"{count} contribution","other":"{count} contributions"} | How a count reads: one for a count the locale calls singular, other for the rest. {count} is filled in. |
zeroLabel | stringDefault: "No {unit}" | A day without activity, in the bubble and announcements ("No contributions"). {unit} is the noun of countLabels.other. |
rangeLabels | ActivityRangeLabelsDefault: {"none":"no {unit}","between":"{from} to {to}","atLeast":"{from} or more"} | How a level's counts read in swatch names and the grid description: none for the empty level ({unit}), between ("{from} to {to}") and atLeast ("{from} or more") for the rest. The caption uses the short forms ("1–3", "13+"). |
dateLabel | stringDefault: "Date" | Header of the date column in the data table. |
countLabel | stringDefault: "Count" | Header of the count column in the data table. |
period | string— | The range on show, such as "2026". It finishes the summary line above the grid ("1,284 contributions in 2026"). |
summaryLabel | stringDefault: "{total} in {period}" | Summary above the grid. {total} is the count label of the total, shown emphasized and rolling digit by digit when it changes; {period} is the period. Without a period, {period} and the word before it are left out. |
defaultValue | string— | The day selected at first, an ISO date inside the range. Clicking a day, or Enter or Space on the focused day, selects it and draws a ring around it. |
dayLabels | ActivityDayLabelsDefault: {"one":"{count} day","other":"{count} days"} | How a number of days reads in the level caption: one for a count the locale calls singular, other for the rest. {count} is filled in. |
levelCaption | stringDefault: "{days} with {range}" | Caption while a level swatch is hovered, focused or pressed. {days} (the day label) and {range} (the level as counts, such as "1–3 contributions") are filled in. |
highlightLabel | stringDefault: "Highlight days with {range}" | Accessible name of each level swatch. {range} is filled in. |
legendDescription | stringDefault: "Darker squares mean more {unit}. Levels: {levels}." | Describes the grid colors to assistive technology. {unit} is the noun of countLabels.other and {levels} lists every level. |
legendLabel | stringDefault: "Highlight days by level" | Accessible name of the group of level swatches. |
lessLabel | stringDefault: "Less" | Text before the level swatches. |
moreLabel | stringDefault: "More" | Text after the level swatches. |
size | sm | md | lgDefault: "md" | Largest day: 12, 15 or 18 pixels with a 3 pixel gap. Days shrink to fit a year in the container, down to 9 pixels; a narrower grid scrolls and opens on the newest weeks. |
recipe | studio | softDefault: "studio" | Visual treatment. Both recipes use the same interaction behavior. |
theme | ActivityHeatmapTheme— | Color mode, accent, and tokens, including cellSize (the largest day). The four levels are tints of the accent. See Theming. |
motion | none | subtle | expressiveDefault: "subtle" | Draw-in and range change animation preset: a new range recolors the days in a diagonal sweep (backwards for an earlier range), days outside it shrink away and month labels glide. System reduced-motion preferences take precedence. |
motionOptions | ActivityHeatmapMotionOptions— | draw: days growing in as a diagonal wave when the chart scrolls into view, a tween with a duration (ms) or a spring. |
dir | ltr | rtl— | Reading direction. rtl runs the weeks from the right. Omit it to inherit the page direction. |
React integration
| Prop | Purpose |
|---|---|
value | Controlled selected day as an ISO date (YYYY-MM-DD), or null for none |
onValueChange | Fires with the selected ISO date (or null), in both modes |
actions | React controls placed beside the summary header (such as a range switch) |
preset | Application defaults, overridden by explicit instance props |
tokens | CSS variables applied after the typed theme |
ref | Ref forwarded to the root <figure> |
className, style | Applied to the root <figure> |
| Native attributes | id, data-*, and remaining <figure> attributes forwarded to the root |
Keyboard & accessibility
| Focus target | Key | Interaction |
|---|---|---|
| Calendar grid | Tab | Focus last focused day, else selected day, else latest day |
| Calendar grid | ArrowUp, ArrowDown | Move backward or forward by one day |
| Calendar grid | ArrowLeft, Right | Move backward or forward by one week |
| Calendar grid | Home, End | Jump to the first or last day in the grid |
| Calendar grid | Enter, Space | Select the focused day |
| Calendar grid | Escape | Hide the floating bubble or clear an active level preview |
| Level swatches | ArrowLeft, Right | Move between level toggle buttons |
| Level swatches | Enter, Space | Pin or release the level preview |
The chart renders a <figure> named by title and linked via aria-details to a native data table listing each day's date and count. The grid uses role="grid" with a roving tabindex (legendDescription), where each gridcell is named by pointLabel and marked aria-selected. The floating bubble is hidden from assistive technology. The summary header is a polite live status announcing new totals or periods, and level swatches use highlightLabel while announcing levelCaption politely. Under forced-colors, system colors apply.
Motion and theming
When the chart scrolls into view, cells scale and fade in along a diagonal wave (motionOptions.draw); server-rendered markup is final. When the date range updates, grid cells recolor along the wave over 320 ms, out-of-range cells shrink away, month labels glide to their new columns, and the summary total rolls digit by digit. The bubble glides between days on a snappy spring, adjusts width on the morph spring, and scales from its tail; the selection ring glides on a CSS spring while keyboard focus moves immediately. prefers-reduced-motion: reduce keeps 160 ms color and text crossfades; motion="none" disables all motion.
theme accepts a mode, an accent (levels render at 26%, 50%, 76%, and 100% of accent), and semantic tokens including cellSize. An application-wide UtherealProvider supplies defaults.
Composition
In an agent composition, ActivityHeatmap is a leaf with no actions. The selected day is host state stored at /components/instance-<id>/value, initialized from defaultValue. The host updates days through composition updates. See Building with agents.
{
"type": "ActivityHeatmap",
"props": {
"title": "Logins",
"days": [
{ "date": "2026-10-01", "count": 3 },
{ "date": "2026-10-02", "count": 5 }
]
},
"children": []
}