Stat

Displays a key metric with label and optional change indicator.

Preview

Props

PropTypeDefaultDescription
labelstringMetric label
valuestringMetric value
changestringChange text
trendstringup or down

Usage

const { Stat } = window.ColorSnap;
ReactDOM.createRoot(document.getElementById('root')).render(
  React.createElement(Stat, { label: 'Revenue', value: '$12,345', change: '+12%', trend: 'up' })
);