Data
Heatmap
Activity heatmap grid with configurable color intensity levels.
Quick Preview
LessMore
Installation
// Copy fromsrc/components/data/Heatmap.tsx
Examples
12-week activity
LessMore
Prompt Preview
Copy a prompt that recreates this UI
Paste this into your AI coding assistant to generate code that closely matches the reference, including color, size, shape, typography, spacing, and polish.
Copy-ready AI prompt
Starts from the current visual reference and project constraints.
Tweak only product-specific copy or data after the first generation pass.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
cells* | HeatmapCell[] | - | Array of { date, value, label? } |
maxValue | number | - | Maximum value (auto-detected if omitted) |
levels | number | 5 | Number of intensity levels |
showLabels | boolean | false | Show Less/More legend |
className | string | - | Additional CSS classes |