{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "stats-06",
  "type": "registry:block",
  "title": "Stats with Status",
  "description": "Stats with Status. Product metrics, usage summaries, and dashboard statistics with clear visual hierarchy.",
  "author": "Ephraim Duncan",
  "registryDependencies": [],
  "dependencies": [
    "cn@0.2.6",
    "lucide-react@0.577.0"
  ],
  "files": [
    {
      "path": "licenses/stats-06/LICENSE.txt",
      "type": "registry:file",
      "target": "@components/uiblocks/stats-06/LICENSE.txt",
      "content": "Includes source from Blocks.so and its bundled primitives.\nSource: https://github.com/ephraimduncan/blocks\nRevision: 3f759d5171c2391253ec4c772e9e5b3db2bc7c7f\nUIBlocks modifications (block v0.2.0):\n- Replaced Next.js Link with standard anchors; destinations remain controlled by the host application.\n\nMIT License\n\nCopyright (c) 2025 Ephraim Duncan\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
    },
    {
      "path": "lib/utils.ts",
      "type": "registry:component",
      "target": "@components/uiblocks/stats-06/shared/lib/utils.ts",
      "content": "export { cn } from \"cn\";\n"
    },
    {
      "path": "content/components/stats/stats-06.tsx",
      "type": "registry:component",
      "target": "@components/uiblocks/stats-06/stats-06.tsx",
      "content": "\"use client\";\n\nimport { ArrowRight } from \"lucide-react\";\nimport { cn } from \"./shared/lib/utils\";\n\nconst statuses = {\n  within: { label: \"On track\", color: \"bg-emerald-500\" },\n  observe: { label: \"Needs attention\", color: \"bg-amber-500\" },\n  critical: { label: \"At risk\", color: \"bg-red-500\" },\n};\n\nconst data = [\n  {\n    name: \"Europe\",\n    stat: \"$10,023\",\n    goalsAchieved: 3,\n    status: \"observe\",\n    href: \"#\",\n  },\n  {\n    name: \"North America\",\n    stat: \"$14,092\",\n    goalsAchieved: 5,\n    status: \"within\",\n    href: \"#\",\n  },\n  {\n    name: \"Asia\",\n    stat: \"$113,232\",\n    goalsAchieved: 1,\n    status: \"critical\",\n    href: \"#\",\n  },\n] as {\n  name: string;\n  stat: string;\n  goalsAchieved: number;\n  status: keyof typeof statuses;\n  href: string;\n}[];\n\nconst goals = [1, 2, 3, 4, 5];\n\nexport default function Stats06() {\n  return (\n    <div className=\"@container flex w-full items-center justify-center p-10\">\n      <dl className=\"grid w-full @2xl:grid-cols-3 grid-cols-1 @2xl:divide-x divide-y @2xl:divide-y-0 divide-foreground/10 overflow-hidden rounded-xl bg-background shadow-[0_0_0_1px_oklch(0_0_0/0.06),0_1px_2px_-1px_oklch(0_0_0/0.06),0_2px_4px_0_oklch(0_0_0/0.04)] dark:shadow-[0_0_0_1px_oklch(1_0_0/0.08)]\">\n        {data.map((item) => {\n          const status = statuses[item.status];\n          return (\n            <div\n              className=\"group relative flex flex-col gap-6 p-6 hover:bg-muted/40\"\n              key={item.name}\n            >\n              <div className=\"flex items-center justify-between gap-3\">\n                <dt className=\"truncate font-medium text-foreground text-sm\">\n                  {item.name}\n                </dt>\n                <dd className=\"flex shrink-0 items-center gap-2 text-muted-foreground text-sm\">\n                  <span\n                    aria-hidden={true}\n                    className={cn(\"size-1.5 rounded-full\", status.color)}\n                  />\n                  {status.label}\n                </dd>\n              </div>\n              <dd className=\"font-semibold text-3xl text-foreground tabular-nums tracking-tight\">\n                {item.stat}\n              </dd>\n              <dd className=\"flex flex-col gap-2\">\n                <div className=\"flex items-center justify-between text-sm\">\n                  <span className=\"text-muted-foreground\">Goals achieved</span>\n                  <span className=\"font-medium text-foreground tabular-nums\">\n                    {item.goalsAchieved}/{goals.length}\n                  </span>\n                </div>\n                <div aria-hidden={true} className=\"flex gap-1\">\n                  {goals.map((goal) => (\n                    <span\n                      className={cn(\n                        \"h-1.5 flex-1 rounded-full\",\n                        goal <= item.goalsAchieved\n                          ? status.color\n                          : \"bg-foreground/10\"\n                      )}\n                      key={goal}\n                    />\n                  ))}\n                </div>\n              </dd>\n              <dd className=\"text-sm\">\n                <a\n                  className=\"flex items-center gap-1 font-medium text-foreground focus:outline-none\"\n                  href={item.href}\n                >\n                  <span aria-hidden={true} className=\"absolute inset-0\" />\n                  View region\n                  <ArrowRight\n                    aria-hidden={true}\n                    className=\"size-4 shrink-0 transition-transform group-hover:translate-x-0.5\"\n                  />\n                </a>\n              </dd>\n            </div>\n          );\n        })}\n      </dl>\n    </div>\n  );\n}\n"
    }
  ],
  "categories": [
    "stats",
    "application",
    "clean-saas"
  ],
  "docs": "Import the default component from @components/uiblocks/stats-06/stats-06.tsx. React 19, Tailwind CSS 4, and the standard shadcn CSS theme variables are required. This block is framework-independent React and works in TanStack Start, Vite, and Next.js projects. Connect links or navigation callbacks to your host application. Demo avatars use public image URLs; replace them with your own assets. Demo handlers must be connected to your product. See https://uiblocks.org/stats/stats-06 for content guidelines and source attribution.",
  "meta": {
    "kind": "block",
    "version": "0.2.0",
    "source": {
      "name": "Blocks.so",
      "url": "https://github.com/ephraimduncan/blocks",
      "license": "MIT",
      "author": "Ephraim Duncan",
      "revision": "3f759d5171c2391253ec4c772e9e5b3db2bc7c7f",
      "modifications": [
        "Replaced Next.js Link with standard anchors; destinations remain controlled by the host application."
      ]
    },
    "license": "MIT",
    "style": "clean-saas",
    "pageType": "application",
    "featured": false,
    "tags": [
      "stats",
      "analytics",
      "metrics",
      "dashboard",
      "usage",
      "统计",
      "数据",
      "仪表盘",
      "用量"
    ],
    "contentGuidelines": [
      "Label the time window and units for every value.",
      "Test large values, negative trends, and missing data."
    ],
    "recommendedWith": [],
    "entry": "@components/uiblocks/stats-06/stats-06.tsx",
    "exportName": "default",
    "frameworkIndependent": true,
    "frameworkDependencies": [],
    "compatibleHosts": [
      "react",
      "vite",
      "tanstack-start",
      "nextjs"
    ],
    "requirements": {
      "react": ">=19",
      "tailwind": ">=4"
    },
    "previewUrl": "https://uiblocks.org/preview/stats-06"
  }
}
