# HeatmapComponent

A grid of cells whose shade tells a value, or a calendar of days.

```java
HeatmapComponent days = add(new HeatmapComponent(at(new Box("days", 10, 10, 280, 70)))
        .calendar(LocalDate.of(2026, 1, 1), blocksMinedPerDay)
        .legendWords(words.get("mymod.less"), words.get("mymod.more"))
        .onSelect(day -> open(day)));
```

## Variants

- Calendar
- Grid

Page: https://minuit.dryaides.com/components/heatmap.html
