Components/d3d22cbf-4e86-4803-8d40-24f2bcb257d8

Metric Card

cardfrom Fintech Light
Sign in to Add to Project
Live

AI Usage Rules

Use green for positive changes, red for negative. Show percentage or absolute change.

Code Template

<div className="bg-white rounded-lg border border-slate-200 p-6"><div className="flex items-center justify-between"><span className="text-sm font-medium text-slate-500">{label}</span>{icon}</div><div className="mt-2 text-3xl font-bold text-slate-900">{value}</div><div className="mt-1 flex items-center text-sm"><span className="{changeColor}">{changeIcon} {changeValue}</span><span className="ml-2 text-slate-500">vs last period</span></div></div>

Props Schema

PropertyTypeDefaultDescription
labelstring
valuestring
changeColorstring
changeValuestring
View raw JSON schema
{
  "type": "object",
  "properties": {
    "label": {
      "type": "string"
    },
    "value": {
      "type": "string"
    },
    "changeColor": {
      "type": "string"
    },
    "changeValue": {
      "type": "string"
    }
  }
}