{"id":15297256,"url":"https://github.com/jarrodsampson/react-ctx-menu","last_synced_at":"2025-06-13T18:37:34.171Z","repository":{"id":65372830,"uuid":"95265964","full_name":"jarrodsampson/react-ctx-menu","owner":"jarrodsampson","description":"A simple, effective, lightweight context menu with animation made for React.","archived":false,"fork":false,"pushed_at":"2017-06-24T00:40:54.000Z","size":22,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-04T18:58:36.428Z","etag":null,"topics":["css","es5","es6","javascript","node","npm","package","react","reactjs"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/react-ctx-menu","language":"JavaScript","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/jarrodsampson.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":"2017-06-24T00:34:23.000Z","updated_at":"2022-03-30T05:54:17.000Z","dependencies_parsed_at":"2023-01-19T23:35:21.266Z","dependency_job_id":null,"html_url":"https://github.com/jarrodsampson/react-ctx-menu","commit_stats":null,"previous_names":["planlodge/react-ctx-menu"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jarrodsampson/react-ctx-menu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jarrodsampson%2Freact-ctx-menu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jarrodsampson%2Freact-ctx-menu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jarrodsampson%2Freact-ctx-menu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jarrodsampson%2Freact-ctx-menu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jarrodsampson","download_url":"https://codeload.github.com/jarrodsampson/react-ctx-menu/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jarrodsampson%2Freact-ctx-menu/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259699911,"owners_count":22898349,"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":["css","es5","es6","javascript","node","npm","package","react","reactjs"],"created_at":"2024-09-30T19:16:05.408Z","updated_at":"2025-06-13T18:37:34.138Z","avatar_url":"https://github.com/jarrodsampson.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-ctx-menu\n\nA simple, effective, lightweight context menu with animation made for React.\n\n![menu](screen9.png \"menu\")\n\nTo use:\n\nInstall the component in your project:\n\n```npm install react-ctx-menu --save```\n\nImport the component into your project:\n\n```javascript\nimport CTXMenu from 'react-ctx-menu';\n```\n\nPass a ```ctxId```, and an array of menu items with icons, labels, and functions:\n\n```jsx\n\u003cCTXMenu\n       ctxId={'settings-text'}\n       menuItems={[\n            {'image': logo, 'text': 'Label 1', 'onClick': this.sample},\n            {'image': logo, 'text': 'Label 2', 'onClick': this.sample},\n            {'image': logo, 'text': 'Label 3', 'onClick': this.sample},\n            {'image': logo, 'text': 'Label 4', 'onClick': this.sample}\n       ]}\n/\u003e\n```\n\nWhere ```logo``` is an image file imported into the parent component:\n\n```javascript\nimport logo from './logo.svg';\n```\n\nThe ```ctxId``` is the area in which you'd like right-click functionality. Add a unique ```id``` to your right-clickable element, and react-context-menu will be available anywhere within that element.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjarrodsampson%2Freact-ctx-menu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjarrodsampson%2Freact-ctx-menu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjarrodsampson%2Freact-ctx-menu/lists"}