
Cards · Free
Hex performance
A honeycomb heatmap card for dashboards: hexagons with soft corners, a jelly legend that lights one stat, and spongy motion.
Free on Gumroad: the download arrives in your inbox.
Details
- Category
- Cards
- Plan
- Free
- Code
- React + Tailwind, TypeScript · 371 lines
- Files
- HexPerformance.tsx
- Needs
- React and Tailwind only
- Agents
- MCP server and shadcn registry
About
A dashboard card with a honeycomb heatmap. Every hexagon is one slice of your data, and the hotter it is, the warmer its colour: cold grey, Lilac, light Ochre, Ochre. The hexagons have soft corners, like the Bot.
Everything moves like a sponge. The honeycomb squashes and bounces in from the centre. Point at a hexagon and it wobbles up above the rest while its neighbours give way, with its value in a tooltip. The legend is a jelly selector: point at a stat and a blob in its colour slides under it, stretching on the way; only its hexagons stay lit. Press it to keep them lit. Switch the range (7 days, 30 days…) and the honeycomb squishes and recolours in a ripple. More analysis opens the rows below, and each row opens for its detail.
React + Tailwind, no other libraries.
Install
With the shadcn CLI:
npx shadcn@latest add https://www.stackd.codes/r/hex-performance.jsonOr let your agent add it through the StackD MCP server:
claude mcp add --transport http stackd https://www.stackd.codes/mcpPrompt for your agent
Paste it into Claude Code, Cursor, Codex or VS Code once the MCP server is connected.
Add the StackD Hex performance component to this project. Use the StackD MCP server: call get_component with { "name": "hex-performance" }, write the files at the paths it gives and install any npm packages it lists. Then use it where it fits, following its README for the props, and keep its own styles.Use
- Copy
HexPerformance.tsxinto your project (for examplecomponents/). - Use it:
import { HexPerformance, type HexRange } from './components/HexPerformance'
const ranges: HexRange[] = [
{
label: '7 days',
columns: 15,
cells: week, // one number per hexagon, 0 to 1, row by row; null leaves a gap
stats: [
{ label: 'Opened', value: '24.1%' },
{ label: 'Clicked', value: '16.1%' },
{ label: 'Converted', value: '12.5%' },
],
rows: [{ label: 'Unsubscribed', value: '0.2%', delta: 0.1 }],
},
]
<HexPerformance title="Performance" subtitle="Email" ranges={ranges} format={(v) => `${Math.round(v * 100)}% opened`} />
No data yet? demoCells(columns, rows, seed) makes a believable honeycomb (a warm core, a ragged edge).
The legend's three stats map to the three warmest colours: the first is Ochre (the hottest hexagons), the second light Ochre, the third Lilac.
In Next.js the file already starts with 'use client'. In other React setups that line does nothing.
Options
| Prop | Default | What it does |
|---|---|---|
ranges | One or more { label, columns, cells, stats, rows? }. Two or more show the range switch | |
title | 'Performance' | The card's title |
subtitle | 'Email' | The small line under it |
format | v => '42%' | What a hexagon's tooltip says |
link | { label: 'More analysis' } | The top-right button. With href or onClick it goes there; without, it opens the rows (and says lessLabel) |
theme | 'light' | 'light' (white card) or 'dark' |
width | 400 | Width in px. The honeycomb fits it |
defaultStat | -1 | Start with one legend stat pressed (0 = the warmest) |
defaultMore | false | Start with the rows open |
className | Extra classes |
Each row: { label, value, delta, detail? }. A positive delta gets an Olive arrow up, a negative one a Wine arrow down.
Accessibility
The honeycomb is labelled with the range and the three stats. Tab to it and the arrow keys move between hexagons; the value is announced. The range switch is a tab list, the legend stats are toggle buttons and the rows are buttons that say whether they're open. With reduced motion on nothing squashes or bounces: things just change.
Colours from StackD
White #FFFFFF · Ink #141310 · Wine #901919 · Olive #6C8544 · Ochre #BE9344 · Lilac #C9B8FF
Licence
You can use it in personal and commercial projects. Don't resell or share the component on its own.


