{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Menu Entry component",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "<!-- Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT. -->\n<!--\n  One entry of a menu: a link to its address, or, without one, its content as text in the same box (the magazine\n  routes nothing, so it shows text). current marks the page the entry stands for (aria-current) either way.\n-->\n<script lang=\"ts\">\nexport type MenuEntryProps = {\n  href?: string;\n  current?: boolean;\n  variant?: \"default\" | \"muted\" | \"block\";\n  size?: \"default\" | \"sm\";\n  testid?: string;\n  block?: boolean;\n  class?: string;\n};\n</script>\n\n<script setup lang=\"ts\">\nimport Box from \"../compose/Box.vue\";\nimport Inline from \"../compose/Inline.vue\";\nimport Link from \"../compose/Link.vue\";\nimport { urlOf } from \"../utils\";\n\nconst {\n  href,\n  current = false,\n  variant = \"default\",\n  size = \"default\",\n  testid,\n  block = false,\n  class: className,\n} = defineProps<MenuEntryProps>();\ndefineSlots<{ default?(): unknown }>();\n</script>\n\n<template>\n  <Link v-if=\"href\"\n    :href=\"urlOf(href)\"\n    :variant=\"variant\"\n    :size=\"size\"\n    :aria-current=\"(current ? 'page' : undefined)\"\n    :class=\"className\"\n    :data-slot=\"(testid ?? 'menu-entry')\"\n  >\n    <slot />\n  </Link>\n  <Box\n    v-else-if=\"block\"\n    :class=\"className\"\n    :aria-current=\"(current ? 'page' : undefined)\"\n    :data-slot=\"(testid ?? 'menu-entry')\"\n  >\n    <slot />\n  </Box>\n  <Inline\n    v-else\n    :class=\"className\"\n    :aria-current=\"(current ? 'page' : undefined)\"\n    :data-slot=\"(testid ?? 'menu-entry')\"\n  >\n    <slot />\n  </Inline>\n</template>\n",
      "path": "components/menu-entry.vue",
      "target": "components/menu-entry.vue"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "vue",
      "component"
    ]
  },
  "name": "menu-entry",
  "registryDependencies": [
    "box",
    "inline",
    "link",
    "utils"
  ],
  "runtime": "vue",
  "title": "Menu Entry",
  "type": "registry:component"
}
