{
  "$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/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 */\nimport { type ReactNode } from \"react\";\nimport { Box, Inline, Link } from \"../compose\";\nimport { urlOf } from \"../utils\";\n\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  className?: string;\n  children?: ReactNode;\n};\n\nexport function MenuEntry({\n  href,\n  current = false,\n  variant = \"default\",\n  size = \"default\",\n  testid,\n  block = false,\n  className,\n  children,\n}: MenuEntryProps) {\n  return (\n    <>\n      {href ? (\n        <Link\n          href={urlOf(href)}\n          variant={variant}\n          size={size}\n          aria-current={(current ? \"page\" : undefined)}\n          className={className}\n          data-slot={(testid ?? \"menu-entry\")}\n        >\n          {children}\n        </Link>\n      ) : block ? (\n        <Box className={className} aria-current={(current ? \"page\" : undefined)} data-slot={(testid ?? \"menu-entry\")}>\n          {children}\n        </Box>\n      ) : (\n        <Inline\n          className={className}\n          aria-current={(current ? \"page\" : undefined)}\n          data-slot={(testid ?? \"menu-entry\")}\n        >\n          {children}\n        </Inline>\n      )}\n    </>\n  );\n}\n",
      "path": "components/menu-entry.tsx",
      "target": "components/menu-entry.tsx"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "react",
      "component"
    ]
  },
  "name": "menu-entry",
  "registryDependencies": [
    "compose",
    "utils"
  ],
  "runtime": "react",
  "title": "Menu Entry",
  "type": "registry:component"
}
