{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "stats-3",
  "title": "Stat Cards With Trend Arrows",
  "description": "Four bordered stat cards, each with an icon, a metric value, and an up or down trend arrow comparing the figure against last quarter.",
  "registryDependencies": [],
  "files": [
    {
      "path": "registry/blocks/stats/3/stats-block.tsx",
      "content": "import { IconPlaceholder } from \"@/components/icons/icon-placeholder\"\n\ntype IconProps = { className?: string; size?: number | string }\n\nconst stats = [\n  {\n    icon: (p: IconProps) => (\n      <IconPlaceholder\n        lucide=\"Group\"\n        tabler=\"IconUsers\"\n        hugeicons=\"GroupIcon\"\n        phosphor=\"Users\"\n        remixicon=\"RiGroupLine\"\n        {...p}\n      />\n    ),\n    value: \"48,920\",\n    label: \"Monthly active users\",\n    delta: \"+12.5%\",\n    trend: \"up\" as const,\n  },\n  {\n    icon: (p: IconProps) => (\n      <IconPlaceholder\n        lucide=\"ShoppingBag\"\n        tabler=\"IconShoppingBag\"\n        hugeicons=\"ShoppingBagIcon\"\n        phosphor=\"ShoppingBag\"\n        remixicon=\"RiShoppingBag3Line\"\n        {...p}\n      />\n    ),\n    value: \"$182k\",\n    label: \"Net revenue\",\n    delta: \"+8.1%\",\n    trend: \"up\" as const,\n  },\n  {\n    icon: (p: IconProps) => (\n      <IconPlaceholder\n        lucide=\"Activity\"\n        tabler=\"IconActivity\"\n        hugeicons=\"PulseIcon\"\n        phosphor=\"Pulse\"\n        remixicon=\"RiPulseLine\"\n        {...p}\n      />\n    ),\n    value: \"3.2%\",\n    label: \"Churn rate\",\n    delta: \"-1.4%\",\n    trend: \"down\" as const,\n  },\n  {\n    icon: (p: IconProps) => (\n      <IconPlaceholder\n        lucide=\"Clock\"\n        tabler=\"IconClock\"\n        hugeicons=\"TimeIcon\"\n        phosphor=\"Clock\"\n        remixicon=\"RiTimeLine\"\n        {...p}\n      />\n    ),\n    value: \"412 ms\",\n    label: \"Avg response time\",\n    delta: \"-3.2%\",\n    trend: \"down\" as const,\n  },\n]\n\nexport default function StatsBlock() {\n  return (\n    <section className=\"flex w-full items-center justify-center bg-background px-6 py-16 text-foreground\">\n      <div className=\"mx-auto w-full max-w-5xl\">\n        <div className=\"mx-auto max-w-2xl text-center\">\n          <span className=\"text-sm font-medium tracking-widest text-muted-foreground uppercase\">\n            This quarter\n          </span>\n          <h2 className=\"mt-3 font-heading text-3xl font-bold tracking-tight sm:text-4xl\">\n            Performance at a glance\n          </h2>\n          <p className=\"mt-3 text-muted-foreground\">\n            Key metrics across growth, revenue, and reliability, refreshed every\n            hour.\n          </p>\n        </div>\n\n        <dl className=\"mt-12 grid gap-4 sm:grid-cols-2 md:grid-cols-4\">\n          {stats.map(({ icon: Icon, value, label, delta, trend }) => (\n            <div\n              key={label}\n              className=\"flex flex-col rounded-lg border border-border bg-card p-6\"\n            >\n              <span className=\"flex size-10 items-center justify-center rounded-lg border border-border bg-muted\">\n                <Icon className=\"size-5\" aria-hidden=\"true\" />\n              </span>\n              <dt className=\"mt-6 text-3xl font-bold tracking-tight tabular-nums\">\n                {value}\n              </dt>\n              <dd className=\"mt-1 text-sm text-muted-foreground\">{label}</dd>\n              <div className=\"mt-4 flex items-center gap-1 text-sm text-muted-foreground\">\n                {trend === \"up\" ? (\n                  <IconPlaceholder\n                    lucide=\"ArrowUp\"\n                    tabler=\"IconArrowUp\"\n                    hugeicons=\"ArrowUpIcon\"\n                    phosphor=\"ArrowUp\"\n                    remixicon=\"RiArrowUpLine\"\n                    className=\"size-4\"\n                    aria-hidden=\"true\"\n                  />\n                ) : (\n                  <IconPlaceholder\n                    lucide=\"ArrowDown\"\n                    tabler=\"IconArrowDown\"\n                    hugeicons=\"ArrowDownIcon\"\n                    phosphor=\"ArrowDown\"\n                    remixicon=\"RiArrowDownLine\"\n                    className=\"size-4\"\n                    aria-hidden=\"true\"\n                  />\n                )}\n                <span className=\"font-medium tabular-nums\">{delta}</span>\n                <span>vs last quarter</span>\n              </div>\n            </div>\n          ))}\n        </dl>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/blocks/stats-3.tsx"
    }
  ],
  "meta": {
    "height": "506px",
    "tier": "free"
  },
  "categories": [
    "stats"
  ],
  "type": "registry:block"
}