{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "A dashboard counter: an icon, a big number, a caption. With `href` the whole tile is a link, without it the tile is a plain figure.",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "// Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n/**\n * A dashboard counter: an icon, a big number, a caption. With `href` the whole tile is a link, without it the\n * tile is a plain figure.\n */\nimport { type ReactNode } from \"react\";\nimport { Box, IconBadge, Link, Text } from \"../compose\";\nimport { LucideIcon } from \"../icons/LucideIcon\";\nimport { urlOf } from \"../utils\";\n\nexport type StatTileProps = {\n  label: string;\n  value: string | number;\n  icon: string;\n  href?: string;\n  hint?: string;\n};\n\nexport function StatTile({ label, value, icon, href, hint }: StatTileProps) {\n  return (\n    <Box className=\"min-w-0\" data-slot=\"stat-tile\">\n      {href ? (\n        <Link\n          href={urlOf(href)}\n          variant=\"block\"\n          className={\"flex min-w-0 flex-col gap-4 rounded bg-card p-6 text-foreground no-underline inset-ring inset-ring-border \" +\n            \"hover:bg-muted\"}\n        >\n          <Box className=\"flex items-center justify-between gap-2\">\n            <Text className=\"m-0 text-xs font-bold text-muted-foreground\">\n              {label}\n            </Text>\n            <IconBadge size=\"sm\">\n              <LucideIcon name={icon} size={16} />\n            </IconBadge>\n          </Box>\n          <Text size=\"2xl\" weight=\"bold\" className=\"m-0 leading-8\">\n            {value}\n          </Text>\n          {hint ? (\n            <Text className=\"m-0 text-xs font-medium text-muted-foreground\">\n              {hint}\n            </Text>\n          ) : null}\n        </Link>\n      ) : (\n        <Box className={\"flex min-w-0 flex-col gap-4 rounded bg-card p-6 text-foreground inset-ring inset-ring-border\"}>\n          <Box className=\"flex items-center justify-between gap-2\">\n            <Text className=\"m-0 text-xs font-bold text-muted-foreground\">\n              {label}\n            </Text>\n            <IconBadge size=\"sm\">\n              <LucideIcon name={icon} size={16} />\n            </IconBadge>\n          </Box>\n          <Text size=\"2xl\" weight=\"bold\" className=\"m-0 leading-8\">\n            {value}\n          </Text>\n          {hint ? (\n            <Text className=\"m-0 text-xs font-medium text-muted-foreground\">\n              {hint}\n            </Text>\n          ) : null}\n        </Box>\n      )}\n    </Box>\n  );\n}\n",
      "path": "components/stat-tile.tsx",
      "target": "components/stat-tile.tsx"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "react",
      "component"
    ]
  },
  "name": "stat-tile",
  "registryDependencies": [
    "compose",
    "lucide-icon",
    "utils"
  ],
  "runtime": "react",
  "title": "Stat Tile",
  "type": "registry:component"
}
