Heatmap matrix
Two categories against each other, coloured by value. The row and column follow the pointer or arrow keys, and choosing a step of the scale isolates its cells.
When to use
- Weekday by hour, feature by plan, error by service.
- Spotting the busy or broken corner of a grid.
When not to use
- Calendar days over a year; use the activity heatmap.
- Exact comparisons; colour is approximate, so keep the table.
Installation
pnpm dlx shadcn@latest add @caliper/heatmap-matrix
Adds its 5 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
API reference
bucketOf
0 props
No props of its own; it accepts the native props of its root element.
HeatmapMatrix
10 props
Keyboard
- →
- Moves to the next item or value.
- ←
- Moves to the previous item or value.
- ↓
- Moves to the next item or value.
- ↑
- Moves to the previous item or value.
- Home
- Jumps to the first item or the minimum.
- End
- Jumps to the last item or the maximum.
- Escape
- Closes or cancels, then returns focus to where it came from.
Accessibility
It exposes grid, row, columnheader, rowheader, gridcell and group semantics, with aria-label, aria-busy and aria-pressed kept in step with state.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/heatmap-matrix.mdThe index of every part is at /llms.txt.