{"id":24844335,"url":"https://github.com/amirho1/react-right-click-context-menu","last_synced_at":"2025-10-12T04:06:24.606Z","repository":{"id":57343673,"uuid":"429912150","full_name":"amirho1/react-right-click-context-menu","owner":"amirho1","description":"React right-click context menu helps you to prevent users from having default right click also gives u a custom able menu by the way helps u to have different menu on different elements  ","archived":false,"fork":false,"pushed_at":"2021-11-22T15:47:35.000Z","size":1639,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-13T07:41:42.301Z","etag":null,"topics":["browser-context-menu","browser-right-click-menu","context-menu","contextmenu","javascript","react-context-menu","react-right-click-menu","right-click-menu","typescript"],"latest_commit_sha":null,"homepage":"https://amirho1.github.io/react-right-click-context-menu/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amirho1.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-11-19T19:28:44.000Z","updated_at":"2023-06-30T05:38:06.000Z","dependencies_parsed_at":"2022-09-16T02:50:39.526Z","dependency_job_id":null,"html_url":"https://github.com/amirho1/react-right-click-context-menu","commit_stats":null,"previous_names":["amirho1/react-right-click-menu"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/amirho1/react-right-click-context-menu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amirho1%2Freact-right-click-context-menu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amirho1%2Freact-right-click-context-menu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amirho1%2Freact-right-click-context-menu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amirho1%2Freact-right-click-context-menu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amirho1","download_url":"https://codeload.github.com/amirho1/react-right-click-context-menu/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amirho1%2Freact-right-click-context-menu/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279010237,"owners_count":26084718,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["browser-context-menu","browser-right-click-menu","context-menu","contextmenu","javascript","react-context-menu","react-right-click-menu","right-click-menu","typescript"],"created_at":"2025-01-31T09:17:43.074Z","updated_at":"2025-10-12T04:06:24.589Z","avatar_url":"https://github.com/amirho1.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React-right-click-menu\n\nA custom context menu with a default styles but u can modify it and set ur style\n\n## Installation\n\n```\nnpm i react-right-click-context-menu\n```\n\nalso You can clone it\n\n```\n  git clone https://github.com/amirho1/react-right-click-context-menu\n```\n\nthen\n\n## Installing Dependencies\n\n```\n  npm i\n```\n\n## test\n\n```\n  npm run test\n```\n\n## Demo\n\n```\n  npm run serve\n```\n\n## Build\n\nafter getting build you need to copy the scss files in to their files in dist for example MapLI.scss and RightClickMenu.scss\n\n```\nnpm run build\n```\n\n## Example\n\n```javascript\n\u003cRightClickMenu\n  menuClassName=\"menu-demo\"\n  liClassName=\"something\"\n  rightClickTargets={[\n    {\n      className: \"demo-right\",\n      menuList: [\n        \u003ca\n          href=\"https://github.com/amirho1/react-right-click-menu.git\"\n          target=\"_blank\"\u003e\n          \u003ci className=\"fab fa-github\"\u003e\u003c/i\u003e github\n        \u003c/a\u003e,\n        \u003ca target=\"_blank\"\u003e\n          \u003ci className=\"fas fa-paste\"\u003e\u003c/i\u003e Copy\n        \u003c/a\u003e,\n        \u003ca\u003e\n          \u003cinput type=\"checkbox\" id=\"checkbox\" /\u003e\n          \u003clabel htmlFor=\"checkbox\"\u003echeckbox\u003c/label\u003e\n        \u003c/a\u003e,\n      ],\n    },\n    {\n      className: \"demo-left\",\n      menuList: [\n        \u003ca\n          href=\"https://www.linkedin.com/in/amirhossien-salighedar-8b165618a/\"\n          target=\"_blank\"\u003e\n          \u003ci className=\"fab fa-linkedin\"\u003e\u003c/i\u003e linkedin\n        \u003c/a\u003e,\n        \u003ca href=\"#\" target=\"_blank\"\u003e\n          \u003ci className=\"fas fa-paste\"\u003e\u003c/i\u003e Paste\n        \u003c/a\u003e,\n        \u003cspan\u003e\n          {\" \"}\n          \u003ci className=\"fas fa-trash\"\u003e\u003c/i\u003e delete\n        \u003c/span\u003e,\n      ],\n    },\n  ]}\n/\u003e\n```\n\n## Demo Example\n\n```javascript\nexport default function Demo() {\n  return (\n    \u003cdiv className=\"demo\"\u003e\n      \u003cRightClickMenu\n        menuClassName=\"menu-demo\"\n        rightClickTargets={[\n          {\n            className: \"demo-right\",\n            menuList: [\n              \u003ca\n                href=\"https://github.com/amirho1/react-right-click-menu.git\"\n                target=\"_blank\"\u003e\n                \u003ci className=\"fab fa-github\"\u003e\u003c/i\u003e github\n              \u003c/a\u003e,\n              \u003ca target=\"_blank\"\u003e\n                \u003ci className=\"fas fa-paste\"\u003e\u003c/i\u003e Copy\n              \u003c/a\u003e,\n              \u003ca\u003e\n                \u003cinput type=\"checkbox\" id=\"checkbox\" /\u003e\n                \u003clabel htmlFor=\"checkbox\"\u003echeckbox\u003c/label\u003e\n              \u003c/a\u003e,\n            ],\n          },\n          {\n            className: \"demo-left\",\n            menuList: [\n              \u003ca\n                href=\"https://www.linkedin.com/in/amirhossien-salighedar-8b165618a/\"\n                target=\"_blank\"\u003e\n                \u003ci className=\"fab fa-linkedin\"\u003e\u003c/i\u003e linkedin\n              \u003c/a\u003e,\n              \u003ca href=\"#\" target=\"_blank\"\u003e\n                \u003ci className=\"fas fa-paste\"\u003e\u003c/i\u003e Paste\n              \u003c/a\u003e,\n              \u003cspan\u003e\n                {\" \"}\n                \u003ci className=\"fas fa-trash\"\u003e\u003c/i\u003e delete\n              \u003c/span\u003e,\n            ],\n          },\n        ]}\n      /\u003e\n\n      \u003cdiv className=\"demo-left\"\u003e\n        \u003cdiv className=\"description\"\u003e\n          \u003ch1\u003eReact-right-click-menu\u003c/h1\u003e\n          \u003cp className=\"text\"\u003e\n            React right click menu is a library to help developer focus on the\n            main concept it supports{\" \"}\n            \u003ca href=\"https://www.typescriptlang.org/\"\u003eTypescript\u003c/a\u003e also\n            \u003ca href=\"\"\u003eJavascript\u003c/a\u003e\n            click on sides to see the default style and behavior of menu for\n            further reading go to repository\n          \u003c/p\u003e\n\n          \u003ch2\u003e\n            \u003ca href=\"https://github.com/amirho1/react-right-click-menu\"\u003e\n              Repository\n            \u003c/a\u003e\n          \u003c/h2\u003e\n\n          \u003ch2\u003e\n            Author :{\" \"}\n            \u003ca href=\"https://www.linkedin.com/in/amirhossien-salighedar-8b165618a/\"\u003e\n              {\" \"}\n              AmirHossein Salighedar\n            \u003c/a\u003e\n          \u003c/h2\u003e\n        \u003c/div\u003e\n      \u003c/div\u003e\n      \u003cdiv className=\"demo-right\"\u003e\u003c/div\u003e\n    \u003c/div\u003e\n  );\n}\n```\n\n## Properties\n\n| Name                   | Type                                               | Description                                                                                                                                                  |\n| ---------------------- | -------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |\n| rightClickTargets      | {className: string, menuList: element or string}[] | targets that we want to have contextMenu it's required and className is name of targets that library should follow them, menuList is context menu list Items |\n| menuClassName          | string                                             | className of UL the (wrapper)                                                                                                                                |\n| liClassName            | string                                             | className of each LI inside UL                                                                                                                               |\n| preventDefaultOnWindow | boolean                                            | by default true preventsFrom right click on window                                                                                                           |\n\n## License\n\n[MIT](./LICENSE)\n\n## Author\n\n[Xerxes (AmirHossein Salighedar)](https://github.com/amirho1)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famirho1%2Freact-right-click-context-menu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famirho1%2Freact-right-click-context-menu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famirho1%2Freact-right-click-context-menu/lists"}