Stat

Show a number with its label and trend.

General

The basic Stat usage. A trend that starts with - is shown as a drop.

With Extra

Use extra for a small chart or an icon on the right.

Dashboard with a period

Pair the Stat cards with a SegmentedControl that changes the period they show.

APIs

Stat.Props

AttributeDescriptionTypeAccepted valuesDefault
labelwhat the number measuresReactNode--
valuethe numberReactNode--
changetrend text, a leading - is shown as dropstring--
extrachart or icon on the rightReactNode--
...native propsHTMLAttributes--
Edit this page on GitHub