@redrob-labs/ui v1.8.0 · Redrob Group Design System 2026

HeatCell

Insights · src/components/HeatCell/HeatCell.tsx

A table cell shaded by how far its figure sits from a baseline, for a compare grid (teams by measures).

Within 3 points is noise and is not shaded. Beyond it, three steps of the brand blue for the good direction and three of orange for the bad one - orange rather than red, because a team behind its peers is something to help with, not an error. Renders a td; place it in a tr.

Import

import { HeatCell } from '@redrob-labs/ui';

Rendered

No rendering: the delivery ships no preview case for this one

Props

PropTypeNotes
diff number | null Difference from the baseline, in points. null: there is no baseline to compare with.
up boolean | null Whether higher is better. false flips the shading; null shades nothing.
children React.ReactNode What the cell says - the value, and the difference. It must carry both: colour is never the only signal.
title string
className string