Stat Card
Last updated
Last updated
Stat Card
The StatCard
is a UI utility component which renders stat information in a card with a customizable background color.
Render the StatCard
component with the following props:
title
: the title of the card, formatted to all caps
number
: the stat number which gets formatted to a U.S. English locale (comma separated)
link
: an object containing url
& text
which gets rendered as an anchor link at the bottom of the card (usually to link to a campaign or article representing the stat)
backgroundColor
: a css compatible background color which will be assigned as the backgroundColor
property of the card
Output: