Heatmap
A calendar-style contribution heatmap that buckets daily activity into levels.
Import
tsx
import { Heatmap } from "@cooud-ui/ui";
bash
npx cooud-ui add heatmap
Examples
API Reference
Generated from the component's exported types.
HeatmapProps
Extends HTMLAttributes<HTMLDivElement>
| Prop | Type | Default | Description |
|---|---|---|---|
data* | HeatmapDay[] | — | One item per day, laid out into week columns of 7 (top → bottom). |
levels | number | 5 | Number of discrete levels including the empty level 0. |
weekCount | number | — | Hint for the intended number of week columns. Ignored — the data drives the layout — but accepted so callers can document intent. |