ext-apps/examples/scenario-modeler-server/src/components/MetricCard.tsx
Jonathan Hefner 79fa10097b Add scenario-modeler-server example
Demo MCP App for SaaS financial planning with:
- Interactive sliders for MRR, growth, churn, margin, and costs
- 12-month projection charts (MRR, Gross Profit, Net Profit)
- 5 pre-built scenario templates (Bootstrapped, VC Rocketship, etc.)
- Template comparison overlay for strategy analysis
- Light/dark theme support

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-04 14:33:07 -06:00

18 lines
399 B
TypeScript

interface MetricCardProps {
label: string;
value: string;
variant?: "default" | "positive" | "negative";
}
export function MetricCard({
label,
value,
variant = "default",
}: MetricCardProps) {
return (
<div className={`metric-card metric-card--${variant}`}>
<span className="metric-value">{value}</span>
<span className="metric-label">{label}</span>
</div>
);
}