Heatmap Grid
A production-scale, light + dark Heatmap Grid component. Copy-paste via the CLI; you own the code.
npx lerpa-cli add heatmap-gridLive preview available in the gallery.
Usage
import { HeatmapGrid } from "@lerpa/ui";
<HeatmapGrid />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| data | HeatmapDay[] | — | |
| weeks | number | — | |
| colorScale | string[] | — | |
| title | string | — | |
| className | string | — | |
| onSelectDay | (day: HeatmapDay) => void | — |
Accessibility
- Keyboard accessible interactive elements.
- Respects prefers-reduced-motion where animated.
- Color is never the only signal.