|Kit
Changelog

0.22.0

CalendarHeatmap, a GitHub-style activity grid

CalendarHeatmap is a new GitHub-style activity grid: one square per day, a column per week, and up to four shades of any palette color. It localizes dates, week start and direction through Intl, and is a keyboard-navigable grid with one shared tooltip.

Spotlight

A year of activity at a glance

Pass { date, value }[] to CalendarHeatmap; a raw event list works, since entries on the same day add up. The busiest day is split into quarters the way GitHub does it, every palette color gets its own four-step ramp, and a range wider than its container scrolls inside its own scroller, opening on the latest week with the weekday labels pinned.

View Calendar Heatmap

630 activities in the last year

Less01–34–78–1011+More

Changes

  • added2
  • Calendar Heatmap

    New CalendarHeatmap: a GitHub-style activity grid that sums { date, value } entries per day, shades them in up to four thresholds of any color, and scrolls a long range inside its container, opening on the latest week

    #431
  • Calendar Heatmap

    Localized through Intl (dates, numbers, week start, RTL) with a translations prop, and navigable as a role="grid" with arrow keys, Home/End and PageUp/PageDown

    #431

On this page