{
  "$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{%- set v_href = (p.href ?? null) -%}\n{%- set v_current = (p.current ?? false) -%}\n{%- set v_variant = (p.variant ?? 'default') -%}\n{%- set v_size = (p.size ?? 'default') -%}\n{%- set v_testid = (p.testid ?? null) -%}\n{%- set v_block = (p.block ?? false) -%}\n{%- if og_t(v_href) %}\n  {%- set c_1 -%}\n    {{ og_slot((children ?? null))|raw }}\n  {%- endset -%}\n  {{ include('compose/Link.html.twig', {'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': c_1}, with_context = false) }}\n{%- elseif og_t(v_block) %}\n  {%- set c_2 -%}\n    {{ og_slot((children ?? null))|raw }}\n  {%- endset -%}\n  {{ include('compose/Box.html.twig', {'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': c_2}, with_context = false) }}\n{%- else %}\n  {%- set c_3 -%}\n    {{ og_slot((children ?? null))|raw }}\n  {%- endset -%}\n  {{ include('compose/Inline.html.twig', {'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': c_3}, with_context = false) }}\n{%- endif %}\n",
      "path": "blocks/menu-entry.html.twig",
      "target": "blocks/menu-entry.html.twig"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "twig",
      "component"
    ]
  },
  "name": "menu-entry",
  "registryDependencies": [
    "box",
    "inline",
    "link",
    "utils"
  ],
  "runtime": "twig",
  "title": "Menu Entry",
  "type": "registry:component"
}
