{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Stat Tile component",
  "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-->\n<script lang=\"ts\">\nexport type StatTileProps = {\n  label: string;\n  value: string | number;\n  icon: string;\n  href?: string;\n  hint?: string;\n};\n</script>\n\n<script setup lang=\"ts\">\nimport Box from \"../compose/Box.vue\";\nimport IconBadge from \"../compose/IconBadge.vue\";\nimport Link from \"../compose/Link.vue\";\nimport LucideIcon from \"../icons/LucideIcon.vue\";\nimport Text from \"../compose/Text.vue\";\nimport { urlOf } from \"../utils\";\n\nconst { label, value, icon, href, hint } = defineProps<StatTileProps>();\n</script>\n\n<template>\n  <Box class=\"min-w-0\" data-slot=\"stat-tile\">\n    <Link v-if=\"href\"\n      :href=\"urlOf(href)\"\n      variant=\"block\"\n      :class=\"'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 class=\"flex items-center justify-between gap-2\">\n        <Text class=\"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\" class=\"m-0 leading-8\">\n        {{ value }}\n      </Text>\n      <Text v-if=\"hint\" class=\"m-0 text-xs font-medium text-muted-foreground\">\n        {{ hint }}\n      </Text>\n    </Link>\n    <Box\n      v-else\n      class=\"flex min-w-0 flex-col gap-4 rounded bg-card p-6 text-foreground inset-ring inset-ring-border\"\n    >\n      <Box class=\"flex items-center justify-between gap-2\">\n        <Text class=\"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\" class=\"m-0 leading-8\">\n        {{ value }}\n      </Text>\n      <Text v-if=\"hint\" class=\"m-0 text-xs font-medium text-muted-foreground\">\n        {{ hint }}\n      </Text>\n    </Box>\n  </Box>\n</template>\n",
      "path": "components/stat-tile.vue",
      "target": "components/stat-tile.vue"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "vue",
      "component"
    ]
  },
  "name": "stat-tile",
  "registryDependencies": [
    "box",
    "icon-badge",
    "link",
    "lucide-icon",
    "text",
    "utils"
  ],
  "runtime": "vue",
  "title": "Stat Tile",
  "type": "registry:component"
}
