Skip to content
Gravity Logo / Docs Gravity home
Browse documentation
Documentation/Gravity Native

Stat

Display stats and figures to your users with the <Stat> component; it also supports displaying icons and change values.

Code

<Stat
  loading={ loading }
  value='25'
  label='this month'
  icon='pie-chart'
  change='+5%'
/>

Props

PropDescriptionRequiredValue
changepositive/negative number indicating changeoptionalinteger
iconicon image to useoptionalstring
labelstat labelrequiredstring
loadingtoggle the loading spinneroptionalboolean
valuestat valuerequiredinteger or string