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 { HeatCell } from '@redrob-labs/ui';
No rendering: the delivery ships no preview case for this one
| Prop | Type | Notes |
|---|---|---|
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 |