{
  "$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 = og_def(p['label'], none) -%}\n{%- set v_value = og_def(p['value'], none) -%}\n{%- set v_icon = og_def(p['icon'], none) -%}\n{%- set v_href = og_def(p['href'], none) -%}\n{%- set v_hint = og_def(p['hint'], none) -%}\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        {{ og_include('compose/text.html.j2', {'p': {'Class': 'm-0 text-xs font-bold text-muted-foreground'}, 'children': c_1}) }}\n        {%- set c_2 -%}\n          {{ og_include('icons/lucide-icon.html.j2', {'p': {'Name': og_s(v_icon), 'Size': 16}}) }}\n        {%- endset -%}\n        {{ og_include('compose/icon-badge.html.j2', {'p': {'Size': 'sm'}, 'children': c_2}) }}\n      {%- endset -%}\n      {{ og_include('compose/box.html.j2', {'p': {'Class': 'flex items-center justify-between gap-2'}, 'children': c_3}) }}\n      {%- set c_4 -%}\n        {{ og_text(v_value) }}\n      {%- endset -%}\n      {{ og_include('compose/text.html.j2', {'p': {'Size': '2xl', 'Weight': 'bold', 'Class': 'm-0 leading-8'}, 'children': c_4}) }}\n      {%- if og_t(v_hint) %}\n        {%- set c_5 -%}\n          {{ og_text(v_hint) }}\n        {%- endset -%}\n        {{ og_include('compose/text.html.j2', {'p': {'Class': 'm-0 text-xs font-medium text-muted-foreground'}, 'children': c_5}) }}\n      {%- endif %}\n    {%- endset -%}\n    {{ og_include('compose/link.html.j2', {'p': {'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}) }}\n  {%- else %}\n    {%- set c_12 -%}\n      {%- set c_9 -%}\n        {%- set c_7 -%}\n          {{ og_text(v_label) }}\n        {%- endset -%}\n        {{ og_include('compose/text.html.j2', {'p': {'Class': 'm-0 text-xs font-bold text-muted-foreground'}, 'children': c_7}) }}\n        {%- set c_8 -%}\n          {{ og_include('icons/lucide-icon.html.j2', {'p': {'Name': og_s(v_icon), 'Size': 16}}) }}\n        {%- endset -%}\n        {{ og_include('compose/icon-badge.html.j2', {'p': {'Size': 'sm'}, 'children': c_8}) }}\n      {%- endset -%}\n      {{ og_include('compose/box.html.j2', {'p': {'Class': 'flex items-center justify-between gap-2'}, 'children': c_9}) }}\n      {%- set c_10 -%}\n        {{ og_text(v_value) }}\n      {%- endset -%}\n      {{ og_include('compose/text.html.j2', {'p': {'Size': '2xl', 'Weight': 'bold', 'Class': 'm-0 leading-8'}, 'children': c_10}) }}\n      {%- if og_t(v_hint) %}\n        {%- set c_11 -%}\n          {{ og_text(v_hint) }}\n        {%- endset -%}\n        {{ og_include('compose/text.html.j2', {'p': {'Class': 'm-0 text-xs font-medium text-muted-foreground'}, 'children': c_11}) }}\n      {%- endif %}\n    {%- endset -%}\n    {{ og_include('compose/box.html.j2', {'p': {'Class': 'flex min-w-0 flex-col gap-4 rounded bg-card p-6 text-foreground inset-ring inset-ring-border'}, 'children': c_12}) }}\n  {%- endif %}\n{%- endset -%}\n{{ og_include('compose/box.html.j2', {'p': {'Class': 'min-w-0', 'Attrs': og_attrs(['data-slot', 'stat-tile'])}, 'children': c_13}) }}\n",
      "path": "blocks/stat-tile.html.j2",
      "target": "blocks/stat-tile.html.j2"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "jinja2",
      "component"
    ]
  },
  "name": "stat-tile",
  "registryDependencies": [
    "box",
    "icon-badge",
    "link",
    "lucide-icon",
    "text",
    "utils"
  ],
  "runtime": "jinja2",
  "title": "Stat Tile",
  "type": "registry:component"
}
