{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "One key number of StatsBand: a card (StatTile), or the value over its label, optionally under a Lucide icon.",
  "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/** One key number of StatsBand: a card (StatTile), or the value over its label, optionally under a Lucide icon. */\nimport { type JSX } from \"solid-js\";\nimport { Stack, Text } from \"../compose\";\nimport { LucideIcon } from \"../icons/LucideIcon\";\nimport { StatTile } from \"../components/stat-tile\";\nimport { defaults } from \"../presets/defaults\";\nimport { cn } from \"../utils\";\nimport type { Stat } from \"../blocks/stats-band.types\";\n\nexport type StatFigureProps = {\n  stat: Stat;\n  item?: \"plain\" | \"card\" | \"icon\";\n  align?: \"start\" | \"center\";\n};\n\nexport function StatFigure({ stat, item = \"plain\", align = \"center\" }: StatFigureProps) {\n  return (\n    <>\n      {((item as string) === \"card\") ? (\n        <StatTile label={stat.label} value={stat.value} icon={stat.icon} hint={stat.hint} />\n      ) : (\n        <Stack\n          gap=\"6\"\n          align={(((align as string) === \"center\") ? \"center\" : \"start\")}\n          class={cn((((align as string) === \"center\") ? \"text-center\" : \"\"), defaults.stats.column)}\n          data-slot=\"item\"\n        >\n          {((item as string) === \"icon\") ? (\n            <LucideIcon name={stat.icon} size={24} />\n          ) : null}\n          <Stack gap=\"2\" align={(((align as string) === \"center\") ? \"center\" : \"start\")}>\n            <Text size=\"5xl\" weight=\"medium\" class={cn(\"flex items-center\", defaults.stats.figure)}>\n              {stat.value}\n            </Text>\n            <Text size=\"sm\" weight=\"semibold\" class=\"leading-5 text-muted-foreground\">\n              {stat.label}\n            </Text>\n          </Stack>\n        </Stack>\n      )}\n    </>\n  );\n}\n",
      "path": "components/stat-figure.tsx",
      "target": "components/stat-figure.tsx"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "solid",
      "component"
    ]
  },
  "name": "stat-figure",
  "registryDependencies": [
    "compose",
    "lucide-icon",
    "presets",
    "stat-tile",
    "stats-band",
    "utils"
  ],
  "runtime": "solid",
  "title": "Stat Figure",
  "type": "registry:component"
}
