HeatKeys
A grid of cells shaded in four steps by their value, laid out like a keyboard or any grid, with the label kept on every cell.
- Use it for
- Which keys or cells get used, laid out like the real thing.
- Not for
- Counts across two named axes. Try Matrix.
HeatKeys preview
Loading example…
Installation
npm install @stackunseen/uiimport { HeatKeys } from '@stackunseen/ui';@stackunseen/ui/styles.cssUsage and props
Lay the rows out yourself with offsets in cell units. Shading backs up the printed label; every count is in a hidden table. For counts across two named axes, use Matrix.
Supported inputs
This is the public signature used by this example. Open Code to see how the values and callbacks fit together.
label · rows: { keys: { id, label, value, span? }[], offset? }[] · max? · scale?: [low, high] · unit?All props
Loading…
For your coding agent
Give the agent this page instead of a screenshot. The prompt wraps the page with the install and import lines and the rule that your server, not a click, completes an action.
- Contract
- label · rows: { keys: { id, label, value, span? }[], offset? }[] · max? · scale?: [low, high] · unit?
- Keeps honest
- Lay the rows out yourself with offsets in cell units. Shading backs up the printed label; every count is in a hidden table. For counts across two named axes, use Matrix.
- MCP
read_component "HeatKeys"on the docs endpoint
Keyboard and customization
Keyboard
Inert content; the hidden table is read in order.
Customization
Change shared colors, spacing, corners and icons with the theme. Use the component's supported props to adapt its content and layout. Customization guide and Theme Studio