Skip to content
Data Display

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>

PropTypeDefaultDescription
data*
HeatmapDay[]One item per day, laid out into week columns of 7 (top → bottom).
levels
number5Number of discrete levels including the empty level 0.
weekCount
numberHint for the intended number of week columns. Ignored — the data drives the layout — but accepted so callers can document intent.