{
  "title": "Stat 1",
  "description": "A minimal statistic card displaying total log counts with a clean, numerical layout.",
  "name": "dashboard-stat-1",
  "dependencies": [],
  "registryDependencies": [
    "card"
  ],
  "type": "registry:block",
  "files": [
    {
      "path": "components/blocks/dashboard/stat/stat-1.tsx",
      "type": "registry:block",
      "content": "import { ArrowDownRightIcon, ArrowUpRightIcon, MinusIcon } from \"lucide-react\";\n\nimport { cn } from \"@/lib/utils\";\n\nimport { Card, CardDescription, CardFooter, CardHeader, CardTitle } from \"@/components/ui/card\";\n\nexport type Stat1Props = {\n    title: string;\n    value: string | number;\n    changeValue: string | number;\n    direction?: \"up\" | \"down\" | \"neutral\";\n};\n\nexport const Stat1 = ({ title, value, changeValue, direction = \"up\" }: Stat1Props) => {\n    const variants = {\n        up: {\n            Icon: ArrowUpRightIcon,\n            color: \"text-green-500\",\n        },\n        down: {\n            Icon: ArrowDownRightIcon,\n            color: \"text-destructive\",\n        },\n        neutral: {\n            Icon: MinusIcon,\n            color: \"text-muted-foreground\",\n        },\n    };\n\n    const { Icon, color } = variants[direction];\n\n    return (\n        <Card className=\"@container/card w-full gap-4 py-4\">\n            <CardHeader className=\"px-4\">\n                <CardDescription className=\"font-medium\">{title}</CardDescription>\n                <CardTitle className=\"text-2xl font-semibold @[600px]/card:text-4xl @[800px]/card:text-5xl\">\n                    {value}\n                </CardTitle>\n            </CardHeader>\n            <CardFooter className={cn(\"flex-row items-center gap-1 px-4 text-sm font-medium\", color)}>\n                <Icon className=\"size-4\" />\n                <span>{changeValue}</span>\n            </CardFooter>\n        </Card>\n    );\n};\n"
    }
  ],
  "mcp": {
    "description": "A minimal statistic card displaying total log counts with a clean, numerical layout. Relies on card. Ideal when an AI agent needs to compose section layouts or application views.",
    "tags": [
      "block",
      "dashboard",
      "stat"
    ]
  }
}