{"id":20006824,"url":"https://github.com/legitcode/context-menu","last_synced_at":"2025-05-04T18:33:38.184Z","repository":{"id":95859104,"uuid":"42149953","full_name":"Legitcode/context-menu","owner":"Legitcode","description":"Replace the native right-click context menu with your own info","archived":false,"fork":false,"pushed_at":"2015-09-09T02:23:32.000Z","size":664,"stargazers_count":30,"open_issues_count":1,"forks_count":1,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-08T10:05:32.862Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://legitcode.github.io/context-menu","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Legitcode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-09-09T01:57:50.000Z","updated_at":"2019-03-08T20:39:26.000Z","dependencies_parsed_at":"2023-03-13T16:44:37.854Z","dependency_job_id":null,"html_url":"https://github.com/Legitcode/context-menu","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Legitcode%2Fcontext-menu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Legitcode%2Fcontext-menu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Legitcode%2Fcontext-menu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Legitcode%2Fcontext-menu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Legitcode","download_url":"https://codeload.github.com/Legitcode/context-menu/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252382706,"owners_count":21739206,"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","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":[],"created_at":"2024-11-13T06:13:49.025Z","updated_at":"2025-05-04T18:33:37.803Z","avatar_url":"https://github.com/Legitcode.png","language":"JavaScript","readme":"##Context menu\n\nThis is a react component for overwriting right-clicks in the browser and displaying your own custom menu.\n\n##Install\n\n`npm install legit-context-menu`\n\n##Example\n\nTake a look at the [real example](http://legitcode.github.io/context-menu) first\n\n~~~js\nimport ContextMenu from 'legit-context-menu';\n\n\u003cContextMenu node={document.querySelector('h3')}\u003e\n    \u003cp\u003ethis will show when you right-click anywhere on the page\u003c/p\u003e\n\u003c/ContextMenu\u003e\n~~~\n\n##Props\n\n- `onShow`: a function that will get the event from where the right click happened\n- `node`: what parts of the page should the context menu work on? defaults to the whole page\nThat's it for now, will possibly add an option later that will allow the native right click to take place if the context menu is already active.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flegitcode%2Fcontext-menu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flegitcode%2Fcontext-menu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flegitcode%2Fcontext-menu/lists"}