Repository navigation
v0.1.0-alpha.17
One new StatCard prop. Nothing renders differently unless you pass it.
Added
labelNode lets a stat label be a node (#31). It renders in place of the label text. label stays required and stays the card's accessible name, because a name derived from a node is whatever text falls out of it rather than something you wrote; pass the same words in both.
A stat label is not always plain text. The case this comes from is a glossary term whose definition appears on hover and focus, which is a node, and which no consumer could put here. The consumer that needed it kept a 339-line copy of this component to change one element, through an entire migration onto this package.
It follows TabItem's labelExtra: the same problem, solved the same way.
Before you upgrade
A minor addition. labelNode defaults to undefined and the label renders exactly as it did in 0.1.0-alpha.16.
Full changelog: v0.1.0-alpha.16...v0.1.0-alpha.17