!!! Looking for maintainers !!!
React Contextmenu
ContextMenu in React with accessibility support. Live Examples can be found here
Table of contents
Installation
Using npm
npm install --save react-contextmenu
Using yarn
yarn add react-contextmenu
Browser Support
- IE 11 and Edge >= 12
- FireFox >= 38
- Chrome >= 47
- Opera >= 34
- Safari >= 8
Usage
Simple example
import React from "react";import ReactDOM from "react-dom";import ContextMenu MenuItem ContextMenuTrigger from "react-contextmenu"; { console;} { return <div> /* NOTICE: id must be unique between EVERY <ContextMenuTrigger> and <ContextMenu> pair */ /* NOTICE: inside the pair, <ContextMenuTrigger> and <ContextMenu> must have the same id */ <ContextMenuTrigger ="same_unique_identifier"> <div ="well">Right click to see the menu</div> </ContextMenuTrigger> <ContextMenu ="same_unique_identifier"> <MenuItem = => ContextMenu Item 1 </MenuItem> <MenuItem = => ContextMenu Item 2 </MenuItem> <MenuItem /> <MenuItem = => ContextMenu Item 3 </MenuItem> </ContextMenu> </div> ;} ReactDOM;
see usage docs / examples for more details.
API
FAQs
Who's using react-contextmenu?
Contributors
Changelog
For Changelog, see releases
License
MIT. Copyright(c) Vivek Kumar Bansal