{
  "$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\" module>\n  import type { Snippet } from \"svelte\";\n\n  export type StatTileProps = {\n    label: string;\n    value: string | number;\n    icon: string;\n    href?: string;\n    hint?: string;\n  };\n</script>\n\n<script lang=\"ts\">\n  import Box from \"../compose/Box.svelte\";\n  import IconBadge from \"../compose/IconBadge.svelte\";\n  import Link from \"../compose/Link.svelte\";\n  import LucideIcon from \"../icons/LucideIcon.svelte\";\n  import Text from \"../compose/Text.svelte\";\n  import { urlOf } from \"../utils\";\n\n  let { label, value, icon, href, hint }: StatTileProps = $props();\n</script>\n\n<Box class=\"min-w-0\" data-slot=\"stat-tile\">\n  {#if href}\n    <Link\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      {#if hint}\n        <Text class=\"m-0 text-xs font-medium text-muted-foreground\">\n          {hint}\n        </Text>\n      {/if}\n    </Link>\n  {:else}\n    <Box class=\"flex min-w-0 flex-col gap-4 rounded bg-card p-6 text-foreground inset-ring inset-ring-border\">\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      {#if hint}\n        <Text class=\"m-0 text-xs font-medium text-muted-foreground\">\n          {hint}\n        </Text>\n      {/if}\n    </Box>\n  {/if}\n</Box>\n",
      "path": "components/stat-tile.svelte",
      "target": "components/stat-tile.svelte"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "svelte",
      "component"
    ]
  },
  "name": "stat-tile",
  "registryDependencies": [
    "box",
    "icon-badge",
    "link",
    "lucide-icon",
    "text",
    "utils"
  ],
  "runtime": "svelte",
  "title": "Stat Tile",
  "type": "registry:component"
}
