{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "grid-08",
  "type": "registry:block",
  "description": "Bordered KPI grid with big values, trend deltas and inline SVG sparklines.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [],
  "files": [
    {
      "path": "registry/designali/blocks/grid/grid-08.tsx",
      "content": "import {\n  ArrowDownRight,\n  ArrowUpRight,\n} from \"@designali/icons\"\n\nconst metrics = [\n  { label: \"Blocks\", value: \"460+\", change: 12.4, points: [12, 14, 13, 17, 19, 18, 22, 25, 24, 28] },\n  { label: \"Landing pages\", value: \"240+\", change: 6.8, points: [20, 21, 21, 23, 22, 24, 25, 25, 27, 28] },\n  { label: \"UI examples\", value: \"2,300+\", change: 2.1, points: [18, 19, 18, 20, 21, 20, 21, 22, 22, 23] },\n  { label: \"Bounce rate\", value: \"1.9%\", change: -0.4, points: [26, 24, 25, 22, 21, 22, 19, 18, 17, 16] },\n  { label: \"Icons\", value: \"4,000+\", change: 4.2, points: [14, 15, 15, 16, 17, 17, 18, 19, 19, 21] },\n  { label: \"Client CSAT\", value: \"97.2\", change: 0.6, points: [22, 23, 22, 23, 24, 23, 24, 24, 25, 25] },\n  { label: \"Avg. page load\", value: \"0.8s\", change: -18.0, points: [28, 26, 25, 23, 21, 19, 18, 16, 15, 13] },\n  { label: \"Template downloads\", value: \"18,240\", change: 3.3, points: [15, 14, 16, 17, 16, 18, 19, 18, 20, 22] },\n]\n\nfunction sparkline(points: number[]) {\n  const max = Math.max(...points)\n  const min = Math.min(...points)\n  const range = max - min || 1\n  return points\n    .map((p, i) => `${(i / (points.length - 1)) * 100},${30 - ((p - min) / range) * 26 - 2}`)\n    .join(\" \")\n}\n\nexport default function Grid08() {\n  return (\n    <section className=\"w-full bg-background py-24\">\n      <div className=\"mx-auto max-w-7xl px-6\">\n        <div className=\"flex flex-wrap items-end justify-between gap-4\">\n          <div>\n            <p className=\"font-sans text-xs text-muted-foreground\">Q3 2026 · Designali studio update</p>\n            <h2 className=\"mt-2 text-4xl font-semibold tracking-tight\">Designali by the numbers</h2>\n          </div>\n          <p className=\"text-xs text-muted-foreground\">Change vs. previous quarter</p>\n        </div>\n\n        <dl className=\"mt-12 grid grid-cols-1 gap-px border border-border bg-border sm:grid-cols-2 lg:grid-cols-4\">\n          {metrics.map((metric) => {\n            const goodWhenDown = metric.label === \"Bounce rate\" || metric.label === \"Avg. page load\"\n            const positive = goodWhenDown ? metric.change < 0 : metric.change > 0\n            const Arrow = metric.change > 0 ? ArrowUpRight : ArrowDownRight\n            return (\n              <div key={metric.label} className=\"flex flex-col gap-6 bg-background p-6\">\n                <dt className=\"text-sm text-muted-foreground\">{metric.label}</dt>\n                <dd className=\"flex items-end justify-between gap-4\">\n                  <span className=\"text-3xl font-semibold tracking-tight\">{metric.value}</span>\n                  <span\n                    className={`inline-flex items-center gap-0.5 font-sans text-xs ${\n                      positive\n                        ? \"text-primary dark:text-primary\"\n                        : \"text-primary dark:text-primary\"\n                    }`}\n                  >\n                    <Arrow className=\"size-3.5\" />\n                    {Math.abs(metric.change).toFixed(1)}%\n                  </span>\n                </dd>\n                <svg viewBox=\"0 0 100 30\" preserveAspectRatio=\"none\" className=\"h-10 w-full\" aria-hidden>\n                  <polyline\n                    points={sparkline(metric.points)}\n                    fill=\"none\"\n                    stroke=\"currentColor\"\n                    strokeWidth=\"1.5\"\n                    vectorEffect=\"non-scaling-stroke\"\n                    className={positive ? \"text-primary\" : \"text-primary\"}\n                  />\n                </svg>\n              </div>\n            )\n          })}\n        </dl>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "iframeHeight": "600px"
  },
  "categories": [
    "grid"
  ]
}