File size: 370 Bytes
a985b94
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import React from 'react';
import '../index.css';

const KPICard = ({ title, value, subtitle, color }) => {
  return (
    <div className="kpi-card">
      <p className="kpi-title">{title}</p>
      <h2 className="kpi-value" style={{ color: color }}>{value}</h2>
      {subtitle && <p className="kpi-subtitle">{subtitle}</p>}
    </div>
  );
};

export default KPICard;