{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "One entry of a menu: a link to its address, or, without one, its content as text in the same box (the magazine routes nothing, so it shows text). current marks the page the entry stands for (aria-current) either way.",
  "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/organisms/menu-entry.json\n    One entry of a menu: a link to its address, or, without one, its content as text in the same box (the magazine routes nothing, so it shows text). current marks the page the entry stands for (aria-current) either way.\n    Props (p): href, current, variant, size, testid, block, className; children: markup. *}\n{var $v_href = ($p['href'] ?? null)}\n{var $v_current = ($p['current'] ?? false)}\n{var $v_variant = ($p['variant'] ?? 'default')}\n{var $v_size = ($p['size'] ?? 'default')}\n{var $v_testid = ($p['testid'] ?? null)}\n{var $v_block = ($p['block'] ?? false)}\n{if og_t($v_href)}\n  {capture $c_1}\n    {=og_slot(($children ?? null))|noescape}\n  {/capture}\n  {=og_include('compose/Link.latte', ['href' => og_url(og_s($v_href)), 'variant' => og_s($v_variant), 'size' => og_s($v_size), 'ariaCurrent' => og_s((og_t($v_current) ? 'page' : null)), 'class' => og_s(($p['className'] ?? '')), 'attrs' => og_attrs(['data-slot', og_coalesce([$v_testid, 'menu-entry'])]), 'children' => (string) $c_1])|noescape}\n{elseif og_t($v_block)}\n  {capture $c_2}\n    {=og_slot(($children ?? null))|noescape}\n  {/capture}\n  {=og_include('compose/Box.latte', ['class' => og_s(($p['className'] ?? '')), 'attrs' => og_attrs(['aria-current', (og_t($v_current) ? 'page' : null), 'data-slot', og_coalesce([$v_testid, 'menu-entry'])]), 'children' => (string) $c_2])|noescape}\n{else}\n  {capture $c_3}\n    {=og_slot(($children ?? null))|noescape}\n  {/capture}\n  {=og_include('compose/Inline.latte', ['class' => og_s(($p['className'] ?? '')), 'attrs' => og_attrs(['aria-current', (og_t($v_current) ? 'page' : null), 'data-slot', og_coalesce([$v_testid, 'menu-entry'])]), 'children' => (string) $c_3])|noescape}\n{/if}\n",
      "path": "blocks/menu-entry.latte",
      "target": "blocks/menu-entry.latte"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "latte",
      "component"
    ]
  },
  "name": "menu-entry",
  "registryDependencies": [
    "box",
    "inline",
    "link",
    "utils"
  ],
  "runtime": "latte",
  "title": "Menu Entry",
  "type": "registry:component"
}
