{"id":21112220,"url":"https://github.com/icflorescu/mantine-contextmenu-v6","last_synced_at":"2025-10-18T17:30:03.877Z","repository":{"id":198702191,"uuid":"701353292","full_name":"icflorescu/mantine-contextmenu-v6","owner":"icflorescu","description":"The lightweight yet customisable context-menu for your Mantine applications, with a succinct API and dark-theme support. Compatible with Mantine V6.","archived":false,"fork":false,"pushed_at":"2023-11-10T12:28:53.000Z","size":2741,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-31T01:23:01.774Z","etag":null,"topics":["context-menu","dark-mode","dark-theme","javascript","mantine","mantine-v6","react","typescript","ui","ui-kit"],"latest_commit_sha":null,"homepage":"https://icflorescu.github.io/mantine-contextmenu-v6/","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/icflorescu.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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},"funding":{"github":"icflorescu"}},"created_at":"2023-10-06T13:13:29.000Z","updated_at":"2025-03-07T04:37:03.000Z","dependencies_parsed_at":"2023-10-16T21:33:15.448Z","dependency_job_id":"bb4229c9-bcf6-44db-9fd1-0abaf0a56c78","html_url":"https://github.com/icflorescu/mantine-contextmenu-v6","commit_stats":null,"previous_names":["icflorescu/mantine-contextmenu-v6"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icflorescu%2Fmantine-contextmenu-v6","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icflorescu%2Fmantine-contextmenu-v6/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icflorescu%2Fmantine-contextmenu-v6/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icflorescu%2Fmantine-contextmenu-v6/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/icflorescu","download_url":"https://codeload.github.com/icflorescu/mantine-contextmenu-v6/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252645199,"owners_count":21781902,"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":["context-menu","dark-mode","dark-theme","javascript","mantine","mantine-v6","react","typescript","ui","ui-kit"],"created_at":"2024-11-20T01:27:24.603Z","updated_at":"2025-10-18T17:30:03.805Z","avatar_url":"https://github.com/icflorescu.png","language":"TypeScript","funding_links":["https://github.com/sponsors/icflorescu"],"categories":["TypeScript"],"sub_categories":[],"readme":"# Mantine ContextMenu V6\n\n**⚠️ Mantine ContextMenu V6 is compatible with [Mantine V6](https://v6.mantine.dev).**  \n**💡 If you're using Mantine V7, please use [Mantine ContextMenu V7](https://icflorescu.github.io/mantine-contextmenu/).**  \n\n![Publish NPM \u0026 deploy docs workflow](https://github.com/icflorescu/mantine-contextmenu-v6/actions/workflows/publish-and-deploy.yml/badge.svg)  \n[![NPM version][npm-image]][npm-url]\n[![License][license-image]][license-url]\n[![Stars][stars-image]][stars-url]\n[![Last commit][last-commit-image]][repo-url]\n[![Closed issues][closed-issues-image]][closed-issues-url]\n[![Downloads][downloads-image]][npm-url]\n[![Language][language-image]][repo-url]\n[![Sponsor the author][sponsor-image]][sponsor-url]\n\nThe \"dark-theme aware\" **context-menu** for your Mantine UI applications, built by the creator of [Mantine DataTable](https://icflorescu.github.io/mantine-datatable/).\n\n[![Mantine ContextMenu](https://user-images.githubusercontent.com/581999/231230506-3278ea99-dfb3-4edc-ad67-d47f1626a298.png)](https://icflorescu.github.io/mantine-contextmenu-v6/)\n\n## Features\n\n- **Lightweight** - no external dependencies, [no bloat](https://bundlephobia.com/package/mantine-contextmenu@6)\n- **Dark-theme aware** - automatically adapts to the current Mantine theme\n- **[Simple API](https://icflorescu.github.io/mantine-contextmenu-v6/getting-started)** - just wrap your application in the `ContextMenuProvider` component and use the hook-generated function in your code\n- **[Custom content support](https://icflorescu.github.io/mantine-contextmenu-v6/examples/custom-content)** - use any Mantine component as context menu content\n- **[Highly customizable styling](https://icflorescu.github.io/mantine-contextmenu-v6/examples/styling)** - use the `className`/`classNames`, `style`/`styles` and `sx` props to customize the context menu appearance\n- **[Written in Typescript and well-documented](https://icflorescu.github.io/mantine-contextmenu-v6/type-definitions)** - with detailed JSDoc annotations for each exported function and component\n\n## Full documentation and examples\n\nVisit [icflorescu.github.io/mantine-contextmenu-v6](https://icflorescu.github.io/mantine-contextmenu-v6/) to view the full documentation and learn how to use it by browsing the list of usage examples.\n\n## Quickstart\n\nInstall the package and its dependencies:\n\n```sh\nnpm i @mantine/core@6 @mantine/hooks@6 @emotion/react mantine-contextmenu@6\n```\n\nIf you're using Next.js, Vite, CRA, Remix or Gatsby, you might need to install additional dependencies. Please refer to Mantine's [getting started page](https://mantine.dev/pages/getting-started/) for more details.\n\nWrap your application in the `ContextMenuProvider` components:\n\n```tsx\nimport { MantineProvider } from '@mantine/core';\nimport { ContextMenuProvider } from 'mantine-contextmenu';\n\nfunction App() {\n  return (\n    \u003cMantineProvider\u003e\n      \u003cContextMenuProvider\u003e\n        {/* your app code here... */}\n      \u003c/ContextMenuProvider\u003e\n    \u003c/MantineProvider\u003e\n  );\n}\n```\n\nUse the hook-generated function in your code:\n\n```tsx\nimport { IconCopy, IconDownload } from '@tabler/icons-react';\nimport { useContextMenu } from 'mantine-contextmenu';\nimport Picture from '~/components/Picture';\nimport { copyImageToClipboard, downloadImage, unsplashImages } from '~/lib/image';\n\nexport default function GettingStartedExample() {\n  const showContextMenu = useContextMenu();\n\n  const image = unsplashImages[0];\n  const { src } = image.file;\n\n  return (\n    \u003cPicture\n      image={image}\n      onContextMenu={showContextMenu([\n        {\n          key: 'copy',\n          icon: \u003cIconCopy size={16} /\u003e,\n          title: 'Copy to clipboard',\n          onClick: () =\u003e copyImageToClipboard(src),\n        },\n        {\n          key: 'download',\n          icon: \u003cIconDownload size={16} /\u003e,\n          title: 'Download to your computer',\n          onClick: () =\u003e downloadImage(src),\n        },\n      ])}\n    /\u003e\n  );\n}\n```\n\nMake sure to browse the list of [usage examples](https://icflorescu.github.io/mantine-contextmenu-v6/examples/basic-usage) to learn how to unleash the full power of Mantine ContextMenu.\n\n## Other useful resources\n\n💡 [Mantine DataTable](https://icflorescu.github.io/mantine-datatable/) - The \"dark-theme aware\" **data-table component** for your Mantine UI applications, built by the creator of Mantine ContextMenu.\n\n## Code contributors\n\n[![Contributors list](https://contrib.rocks/image?repo=icflorescu/mantine-contextmenu-v6)](https://github.com/icflorescu/mantine-contextmenu-v6/graphs/contributors)\n\nWant to [become a code contributor](https://icflorescu.github.io/mantine-contextmenu-v6/contribute-and-support)?\n\n## Sponsor the project\n\nIf you find this package useful, please consider ❤️ [sponsoring my work](https://github.com/sponsors/icflorescu). Your sponsorship will help me dedicate more time to maintaining the project and will encourage me to add new features and fix existing bugs. If you're a company using Mantine ContextMenu in a commercial project, you can also [hire my services](https://github.com/icflorescu).\n\n## Other means of support\n\nIf you find this package useful, please 🙏 star the repository, 💕 [tweet about it](https://twitter.com/share?text=Check%20out%20the%20missing%20context-menu%20for%20Mantine%20UI%20applications!\u0026url=https%3A%2F%2Fgithub.com%2Ficflorescu%2Fmantine-contextmenu\u0026hashtags=react%2Cmantine%2Cui%2Ccontextmenu%2Cfrontend%2Copensource\u0026via=icflorescu), 👍 [endorse me on LinkedIn](https://www.linkedin.com/in/icflorescu) or consider hiring my services.\n\nThe more stars this repository gets, the more visibility it gains among the Mantine users community. The more\nusers it gets, the more chances that some of those users will become active code contributors willing to put\ntheir effort into bringing new features to life and/or fixing bugs.\n\nAs the repository gain awareness, my chances of getting hired to work on Mantine-based projects will increase,\nwhich in turn will help maintain my vested interest in keeping the project alive.\n\n## Hiring the author\n\nIf you want to hire my services, don’t hesitate to drop me a line at the email address listed in my [GitHub profile](https://github.com/icflorescu).\nI’m currently getting a constant flow of approaches, some of them relevant, others not so relevant.\nMentioning “Mantine ContextMenu” in your text would help me prioritize your message.\n\n## License\n\nThe [MIT License](https://github.com/icflorescu/mantine-contextmenu-v6/blob/master/LICENSE).\n\n[npm-url]: https://npmjs.org/package/mantine-contextmenu\n[repo-url]: https://github.com/icflorescu/mantine-contextmenu-v6\n[stars-url]: https://github.com/icflorescu/mantine-contextmenu-v6/stargazers\n[closed-issues-url]: https://github.com/icflorescu/mantine-contextmenu-v6/issues?q=is%3Aissue+is%3Aclosed\n[license-url]: LICENSE\n[npm-image]: https://img.shields.io/npm/v/mantine-contextmenu.svg?style=flat-square\n[license-image]: http://img.shields.io/npm/l/mantine-contextmenu.svg?style=flat-square\n[downloads-image]: http://img.shields.io/npm/dm/mantine-contextmenu.svg?style=flat-square\n[stars-image]: https://img.shields.io/github/stars/icflorescu/mantine-contextmenu?style=flat-square\n[last-commit-image]: https://img.shields.io/github/last-commit/icflorescu/mantine-contextmenu-v6?style=flat-square\n[closed-issues-image]: https://img.shields.io/github/issues-closed-raw/icflorescu/mantine-contextmenu-v6?style=flat-square\n[language-image]: https://img.shields.io/github/languages/top/icflorescu/mantine-contextmenu-v6?style=flat-square\n[sponsor-image]: https://img.shields.io/badge/sponsor-violet?style=flat-square\n[sponsor-url]: https://github.com/sponsors/icflorescu\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficflorescu%2Fmantine-contextmenu-v6","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ficflorescu%2Fmantine-contextmenu-v6","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficflorescu%2Fmantine-contextmenu-v6/lists"}