{
  "$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{var $v_label = ($p['label'] ?? null)}\n{var $v_value = ($p['value'] ?? null)}\n{var $v_icon = ($p['icon'] ?? null)}\n{var $v_href = ($p['href'] ?? null)}\n{var $v_hint = ($p['hint'] ?? null)}\n{capture $c_13}\n  {if og_t($v_href)}\n    {capture $c_6}\n      {capture $c_3}\n        {capture $c_1}\n          {=og_text($v_label)}\n        {/capture}\n        {=og_include('compose/Text.latte', ['class' => 'm-0 text-xs font-bold text-muted-foreground', 'children' => (string) $c_1])|noescape}\n        {capture $c_2}\n          {=og_include('icons/LucideIcon.latte', ['name' => og_s($v_icon), 'size' => 16])|noescape}\n        {/capture}\n        {=og_include('compose/IconBadge.latte', ['size' => 'sm', 'children' => (string) $c_2])|noescape}\n      {/capture}\n      {=og_include('compose/Box.latte', ['class' => 'flex items-center justify-between gap-2', 'children' => (string) $c_3])|noescape}\n      {capture $c_4}\n        {=og_text($v_value)}\n      {/capture}\n      {=og_include('compose/Text.latte', ['size' => '2xl', 'weight' => 'bold', 'class' => 'm-0 leading-8', 'children' => (string) $c_4])|noescape}\n      {if og_t($v_hint)}\n        {capture $c_5}\n          {=og_text($v_hint)}\n        {/capture}\n        {=og_include('compose/Text.latte', ['class' => 'm-0 text-xs font-medium text-muted-foreground', 'children' => (string) $c_5])|noescape}\n      {/if}\n    {/capture}\n    {=og_include('compose/Link.latte', ['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' => (string) $c_6])|noescape}\n  {else}\n    {capture $c_12}\n      {capture $c_9}\n        {capture $c_7}\n          {=og_text($v_label)}\n        {/capture}\n        {=og_include('compose/Text.latte', ['class' => 'm-0 text-xs font-bold text-muted-foreground', 'children' => (string) $c_7])|noescape}\n        {capture $c_8}\n          {=og_include('icons/LucideIcon.latte', ['name' => og_s($v_icon), 'size' => 16])|noescape}\n        {/capture}\n        {=og_include('compose/IconBadge.latte', ['size' => 'sm', 'children' => (string) $c_8])|noescape}\n      {/capture}\n      {=og_include('compose/Box.latte', ['class' => 'flex items-center justify-between gap-2', 'children' => (string) $c_9])|noescape}\n      {capture $c_10}\n        {=og_text($v_value)}\n      {/capture}\n      {=og_include('compose/Text.latte', ['size' => '2xl', 'weight' => 'bold', 'class' => 'm-0 leading-8', 'children' => (string) $c_10])|noescape}\n      {if og_t($v_hint)}\n        {capture $c_11}\n          {=og_text($v_hint)}\n        {/capture}\n        {=og_include('compose/Text.latte', ['class' => 'm-0 text-xs font-medium text-muted-foreground', 'children' => (string) $c_11])|noescape}\n      {/if}\n    {/capture}\n    {=og_include('compose/Box.latte', ['class' => 'flex min-w-0 flex-col gap-4 rounded bg-card p-6 text-foreground inset-ring inset-ring-border', 'children' => (string) $c_12])|noescape}\n  {/if}\n{/capture}\n{=og_include('compose/Box.latte', ['class' => 'min-w-0', 'attrs' => og_attrs(['data-slot', 'stat-tile']), 'children' => (string) $c_13])|noescape}\n",
      "path": "blocks/stat-tile.latte",
      "target": "blocks/stat-tile.latte"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "latte",
      "component"
    ]
  },
  "name": "stat-tile",
  "registryDependencies": [
    "box",
    "icon-badge",
    "link",
    "lucide-icon",
    "text",
    "utils"
  ],
  "runtime": "latte",
  "title": "Stat Tile",
  "type": "registry:component"
}
