{
  "$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 = og_def(p['href'], none) -%}\n{%- set v_current = og_def(p['current'], false) -%}\n{%- set v_variant = og_def(p['variant'], 'default') -%}\n{%- set v_size = og_def(p['size'], 'default') -%}\n{%- set v_testid = og_def(p['testid'], none) -%}\n{%- set v_block = og_def(p['block'], false) -%}\n{%- if og_t(v_href) %}\n  {%- set c_1 -%}\n    {{ og_slot(og_def(children, none))|safe }}\n  {%- endset -%}\n  {{ og_include('compose/link.html.j2', {'p': {'Href': og_url(og_s(v_href)), 'Variant': og_s(v_variant), 'Size': og_s(v_size), 'AriaCurrent': og_s(('page' if og_t(v_current) else none)), 'Class': og_s(og_def(p['className'], '')), 'Attrs': og_attrs(['data-slot', og_coalesce([v_testid, 'menu-entry'])])}, 'children': c_1}) }}\n{%- elif og_t(v_block) %}\n  {%- set c_2 -%}\n    {{ og_slot(og_def(children, none))|safe }}\n  {%- endset -%}\n  {{ og_include('compose/box.html.j2', {'p': {'Class': og_s(og_def(p['className'], '')), 'Attrs': og_attrs(['aria-current', ('page' if og_t(v_current) else none), 'data-slot', og_coalesce([v_testid, 'menu-entry'])])}, 'children': c_2}) }}\n{%- else %}\n  {%- set c_3 -%}\n    {{ og_slot(og_def(children, none))|safe }}\n  {%- endset -%}\n  {{ og_include('compose/inline.html.j2', {'p': {'Class': og_s(og_def(p['className'], '')), 'Attrs': og_attrs(['aria-current', ('page' if og_t(v_current) else none), 'data-slot', og_coalesce([v_testid, 'menu-entry'])])}, 'children': c_3}) }}\n{%- endif %}\n",
      "path": "blocks/menu-entry.html.j2",
      "target": "blocks/menu-entry.html.j2"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "jinja2",
      "component"
    ]
  },
  "name": "menu-entry",
  "registryDependencies": [
    "box",
    "inline",
    "link",
    "utils"
  ],
  "runtime": "jinja2",
  "title": "Menu Entry",
  "type": "registry:component"
}
