{"id":25628402,"url":"https://github.com/siamahnaf/context-menu","last_synced_at":"2025-10-11T23:05:14.755Z","repository":{"id":274848490,"uuid":"924268564","full_name":"siamahnaf/context-menu","owner":"siamahnaf","description":"React hook and components for displaying fully UI controlled context menu.","archived":false,"fork":false,"pushed_at":"2025-01-29T18:22:37.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-03T20:42:13.059Z","etag":null,"topics":["contect-menu","react-context-menu"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@siamf/context-menu","language":"TypeScript","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/siamahnaf.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-29T17:53:14.000Z","updated_at":"2025-01-29T18:32:09.000Z","dependencies_parsed_at":"2025-01-29T18:47:21.479Z","dependency_job_id":null,"html_url":"https://github.com/siamahnaf/context-menu","commit_stats":null,"previous_names":["siamahnaf/siamf-context-menu"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/siamahnaf/context-menu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siamahnaf%2Fcontext-menu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siamahnaf%2Fcontext-menu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siamahnaf%2Fcontext-menu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siamahnaf%2Fcontext-menu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/siamahnaf","download_url":"https://codeload.github.com/siamahnaf/context-menu/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siamahnaf%2Fcontext-menu/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279009266,"owners_count":26084570,"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-11T02:00:06.511Z","response_time":55,"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":["contect-menu","react-context-menu"],"created_at":"2025-02-22T18:30:49.595Z","updated_at":"2025-10-11T23:05:14.736Z","avatar_url":"https://github.com/siamahnaf.png","language":"TypeScript","readme":"\u003cbr/\u003e\n\u003cpicture\u003e\n  \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://res.cloudinary.com/dub0dpenl/image/upload/v1731780157/Personal%20Logo/logo-white_e6fujz.png\"\u003e\n  \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"https://res.cloudinary.com/dub0dpenl/image/upload/v1731780152/Personal%20Logo/logo-dark_qqwrqu.png\"\u003e\n  \u003cimg alt=\"Siam Ahnaf\" src=\"https://res.cloudinary.com/dub0dpenl/image/upload/v1731780152/Personal%20Logo/logo-dark_qqwrqu.png\" height=\"auto\" width=\"240\"\u003e\n\u003c/picture\u003e \n\u003cbr/\u003e \u003cbr/\u003e\n\n# @siamf/context-menu\nReact hook and components for displaying fully UI controlled context menu.\n\nThis project is fork of [use-context-menu](https://github.com/bvaughn/use-context-menu) with react 19 support.\n\n# Installation\n\n```bash\n$ npm i @siamf/context-menu\n```\n\n# Usage\n\n### `ImageUpload`\n\n```javascript\n\"use client\"\nimport { ContextMenuItem, useContextMenu } from \"@siamf/context-menu\";\nimport \"@siamf/context-menu/styles.css\";\n\nconst Page = ({ className }: { className: string }) =\u003e {\n  const { contextMenu, onContextMenu, onKeyDown } = useContextMenu(\n    \u003c\u003e\n      \u003cContextMenuItem onSelect={selectOne}\u003eOne\u003c/ContextMenuItem\u003e\n      \u003cContextMenuItem onSelect={selectTwo}\u003eTwo\u003c/ContextMenuItem\u003e\n      \u003cContextMenuItem onSelect={selectThree}\u003eThree\u003c/ContextMenuItem\u003e\n    \u003c/\u003e\n  );\n\n  return (\n    \u003c\u003e\n      \u003cbutton onContextMenu={onContextMenu} onKeyDown={onKeyDown} tabIndex={0}\u003e\n        right-click me\n      \u003c/button\u003e\n      {contextMenu}\n    \u003c/\u003e\n  );\n}\n\nexport default Page;\n```\n\n# Stay in touch\n\n- Author - [Siam Ahnaf](https://www.siamahnaf.com/)\n- Website - [https://www.siamahnaf.com/](https://www.siamahnaf.com/)\n- LinkedIn - [https://www.linkedin.com/in/siamahnaf/](https://www.linkedin.com/in/siamahnaf/)\n- Github - [https://github.com/siamahnaf](https://github.com/siamahnaf)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiamahnaf%2Fcontext-menu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsiamahnaf%2Fcontext-menu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiamahnaf%2Fcontext-menu/lists"}