{
  "$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/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n    Source: packages/compose-gen/specs/parts/stat-tile.json\n    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.\n    Props (p): label, value, icon, href, hint. -#}\n{%- set v_label = (p.label ?? null) -%}\n{%- set v_value = (p.value ?? null) -%}\n{%- set v_icon = (p.icon ?? null) -%}\n{%- set v_href = (p.href ?? null) -%}\n{%- set v_hint = (p.hint ?? null) -%}\n{%- set c_13 -%}\n  {%- if og_t(v_href) %}\n    {%- set c_6 -%}\n      {%- set c_3 -%}\n        {%- set c_1 -%}\n          {{ og_text(v_label) }}\n        {%- endset -%}\n        {{ include('compose/Text.html.twig', {'class': 'm-0 text-xs font-bold text-muted-foreground', 'children': c_1}, with_context = false) }}\n        {%- set c_2 -%}\n          {{ include('icons/LucideIcon.html.twig', {'name': og_s(v_icon), 'size': 16}, with_context = false) }}\n        {%- endset -%}\n        {{ include('compose/IconBadge.html.twig', {'size': 'sm', 'children': c_2}, with_context = false) }}\n      {%- endset -%}\n      {{ include('compose/Box.html.twig', {'class': 'flex items-center justify-between gap-2', 'children': c_3}, with_context = false) }}\n      {%- set c_4 -%}\n        {{ og_text(v_value) }}\n      {%- endset -%}\n      {{ include('compose/Text.html.twig', {'size': '2xl', 'weight': 'bold', 'class': 'm-0 leading-8', 'children': c_4}, with_context = false) }}\n      {%- if og_t(v_hint) %}\n        {%- set c_5 -%}\n          {{ og_text(v_hint) }}\n        {%- endset -%}\n        {{ include('compose/Text.html.twig', {'class': 'm-0 text-xs font-medium text-muted-foreground', 'children': c_5}, with_context = false) }}\n      {%- endif %}\n    {%- endset -%}\n    {{ include('compose/Link.html.twig', {'href': og_url(og_s(v_href)), 'variant': 'block', 'class': 'flex min-w-0 flex-col gap-4 rounded bg-card p-6 text-foreground no-underline inset-ring inset-ring-border hover:bg-muted', 'children': c_6}, with_context = false) }}\n  {%- else %}\n    {%- set c_12 -%}\n      {%- set c_9 -%}\n        {%- set c_7 -%}\n          {{ og_text(v_label) }}\n        {%- endset -%}\n        {{ include('compose/Text.html.twig', {'class': 'm-0 text-xs font-bold text-muted-foreground', 'children': c_7}, with_context = false) }}\n        {%- set c_8 -%}\n          {{ include('icons/LucideIcon.html.twig', {'name': og_s(v_icon), 'size': 16}, with_context = false) }}\n        {%- endset -%}\n        {{ include('compose/IconBadge.html.twig', {'size': 'sm', 'children': c_8}, with_context = false) }}\n      {%- endset -%}\n      {{ include('compose/Box.html.twig', {'class': 'flex items-center justify-between gap-2', 'children': c_9}, with_context = false) }}\n      {%- set c_10 -%}\n        {{ og_text(v_value) }}\n      {%- endset -%}\n      {{ include('compose/Text.html.twig', {'size': '2xl', 'weight': 'bold', 'class': 'm-0 leading-8', 'children': c_10}, with_context = false) }}\n      {%- if og_t(v_hint) %}\n        {%- set c_11 -%}\n          {{ og_text(v_hint) }}\n        {%- endset -%}\n        {{ include('compose/Text.html.twig', {'class': 'm-0 text-xs font-medium text-muted-foreground', 'children': c_11}, with_context = false) }}\n      {%- endif %}\n    {%- endset -%}\n    {{ include('compose/Box.html.twig', {'class': 'flex min-w-0 flex-col gap-4 rounded bg-card p-6 text-foreground inset-ring inset-ring-border', 'children': c_12}, with_context = false) }}\n  {%- endif %}\n{%- endset -%}\n{{ include('compose/Box.html.twig', {'class': 'min-w-0', 'attrs': og_attrs(['data-slot', 'stat-tile']), 'children': c_13}, with_context = false) }}\n",
      "path": "blocks/stat-tile.html.twig",
      "target": "blocks/stat-tile.html.twig"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "twig",
      "component"
    ]
  },
  "name": "stat-tile",
  "registryDependencies": [
    "box",
    "icon-badge",
    "link",
    "lucide-icon",
    "text",
    "utils"
  ],
  "runtime": "twig",
  "title": "Stat Tile",
  "type": "registry:component"
}
