{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "menu",
  "type": "registry:component",
  "title": "Menu",
  "description": "A sticker button that opens a short sheet of actions: hand-drawn icons, keycap hints, a dashed separator and one careful red item at the end. Use the round icon version at the end of a row.",
  "categories": [
    "actions"
  ],
  "dependencies": [
    "@plop-ui/react",
    "@plop-ui/fonts"
  ],
  "registryDependencies": [
    "https://plopui.com/r/plop-setup.json"
  ],
  "files": [
    {
      "path": "registry/plopui/menu-example.tsx",
      "type": "registry:component",
      "target": "components/plop/menu-example.tsx",
      "content": "\"use client\";\n\nimport { CopyIcon, EditIcon, Menu, MoreIcon, TrashIcon, toast } from \"@plop-ui/react\";\n\n/** Menu: a sticker button that opens a list of actions, with icons, shortcuts and a danger item. */\nexport function MenuExample() {\n  return (\n    <>\n      <Menu\n        label=\"Sketch actions\"\n        items={[\n          { label: \"Rename\", icon: <EditIcon />, keys: [\"E\"], onSelect: () => toast(\"Rename\") },\n          { label: \"Duplicate\", icon: <CopyIcon />, keys: [\"Shift\", \"D\"], onSelect: () => toast(\"Duplicated\") },\n          \"separator\",\n          { label: \"Delete sketch\", icon: <TrashIcon />, danger: true, onSelect: () => toast.error(\"Deleted\") },\n        ]}\n      />\n\n      <Menu\n        label=\"More actions\"\n        icon={<MoreIcon />}\n        align=\"end\"\n        items={[\n          { label: \"Share\", onSelect: () => toast(\"Link copied\") },\n          { label: \"Archive\", onSelect: () => toast(\"Archived\") },\n        ]}\n      />\n    </>\n  );\n}\n"
    }
  ],
  "docs": "Example: components/plop/menu-example.tsx. Docs: https://plopui.com/docs/components/menu"
}
