{
  "title": "Stat 3",
  "description": "A stat card displaying a metric with icon, trend indicator, and monthly goal progress.",
  "name": "dashboard-stat-3",
  "dependencies": [],
  "registryDependencies": [
    "card"
  ],
  "type": "registry:block",
  "files": [
    {
      "path": "components/blocks/dashboard/stat/stat-3.tsx",
      "type": "registry:block",
      "content": "import { ArrowDownRightIcon, ArrowUpRightIcon, type LucideIcon, UsersIcon } from \"lucide-react\";\n\nimport { cn } from \"@/lib/utils\";\n\nimport { Card, CardContent, CardDescription, CardHeader, CardTitle } from \"@/components/ui/card\";\n\nexport type Stat3Props = {\n    title: string;\n    value: string | number;\n    growthValue: number;\n    timeText: string;\n    icon?: LucideIcon;\n    goalProgress?: number;\n};\n\nexport const Stat3 = ({\n    title,\n    value,\n    growthValue,\n    timeText,\n    icon: Icon = UsersIcon,\n    goalProgress = 82,\n}: Stat3Props) => {\n    const isPositive = growthValue > 0;\n    const TrendIcon = isPositive ? ArrowUpRightIcon : ArrowDownRightIcon;\n    const trendColor = isPositive ? \"text-green-500\" : \"text-destructive\";\n\n    return (\n        <Card className=\"w-full\">\n            <CardHeader className=\"flex items-start justify-between gap-4\">\n                <div className=\"grid gap-1\">\n                    <CardDescription className=\"font-medium\">{title}</CardDescription>\n                    <CardTitle className=\"text-2xl leading-none font-semibold\">{value}</CardTitle>\n                </div>\n                <div className=\"bg-muted flex size-10 items-center justify-center rounded-md\">\n                    <Icon className=\"size-5\" />\n                </div>\n            </CardHeader>\n            <CardContent className=\"flex flex-col\">\n                <div className=\"flex items-center gap-1.5 text-sm font-medium\">\n                    <span className={cn(\"flex items-center gap-0.5\", trendColor)}>\n                        <TrendIcon className=\"size-4\" />\n                        {isPositive ? \"+\" : \"\"}\n                        {growthValue}%\n                    </span>\n                    <span className=\"text-muted-foreground\">{timeText}</span>\n                </div>\n                {goalProgress !== undefined && (\n                    <div className=\"grid gap-1.5 pt-2\">\n                        <div className=\"flex items-center justify-between text-sm\">\n                            <p>Goal</p>\n                            <span className=\"font-medium\">{goalProgress}%</span>\n                        </div>\n                        <div className=\"bg-muted h-1.5 w-full overflow-hidden rounded-full\">\n                            <div\n                                className=\"bg-primary h-full rounded-full transition-all duration-500\"\n                                style={{ width: `${goalProgress}%` }}\n                            />\n                        </div>\n                    </div>\n                )}\n            </CardContent>\n        </Card>\n    );\n};\n"
    }
  ],
  "mcp": {
    "description": "A stat card displaying a metric with icon, trend indicator, and monthly goal progress. Relies on card. Ideal when an AI agent needs to compose section layouts or application views.",
    "tags": [
      "block",
      "dashboard",
      "stat"
    ]
  }
}