Skip to main content

Stat

Show a key number with its change & trend.

View as Markdown

Installation

Component API

PropTypeDefaultDescription
labelstring-What the number counts.
What the number counts.
valuestring-The number, already formatted, such as $58,210.
The number, already formatted, such as $58,210.
changestring-The change, already formatted, such as 12.4%.
The change, already formatted, such as 12.4%.
directionup | downupWhich way the change went, which picks its arrow.
Which way the change went, which picks its arrow.
trendnumber[]-A trend line under the number, oldest value first.
A trend line under the number, oldest value first.
intentpositive | negative | neutralneutral
shapenone | rounded | pillrounded
animatedbooleantrue
classNamestring-