Context Menu implemented in React
npm install @firefox-devtools/react-contextmenuContextMenu in React with accessibility support. Live Examples can be found here
This is a fork from the original project for use with the firefox profiler. We
don't intend to add new features but will fix issues with the existing code, and
sometimes change it for our usage. We hope it can be useful for more projects.
Thanks Vivek Kumar Bansal for all the good work
put in this project.
- Installation
- Browser Support
- Usage
- API
- FAQs
- Contributors
- Changelog
- License
Using npm
```
npm install --save @firefox-devtools/react-contextmenu
Using yarn
``
yarn add @firefox-devtools/react-contextmenu
Simple example
`jsx
import React from "react";
import ReactDOM from "react-dom";
import { ContextMenu, MenuItem, ContextMenuTrigger } from "@firefox-devtools/react-contextmenu";
function handleClick(e, data) {
console.log(data.foo);
}
function MyApp() {
return (
Right click to see the menu
ReactDOM.render(
``
see usage docs / examples for more details.
For Changelog, see releases
For the changelog from before the fork, see releases
MIT. Copyright(c) Vivek Kumar Bansal