Project is no longer maintained
[![NPM version][npm-image]][npm-url]
[![Build Status][travis-image]][travis-url]
[![Dependency Status][deps-image]][deps-url]
[![Dev Dependency Status][dev-deps-image]][dev-deps-url]
[![Code Climate][climate-image]][climate-url]

React Contextmenu
ContextMenu in React with accessibility support. Live Examples can be found
here
Table of contents
-
Installation
-
Browser Support
-
Usage
-
API
-
FAQs
-
Contributors
-
Changelog
-
License
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
`
jsx
import React from "react";
import ReactDOM from "react-dom";
import { ContextMenu, MenuItem, ContextMenuTrigger } from "react-contextmenu";
function handleClick(e, data) {
console.log(data.foo);
}
function MyApp() {
return (
{/
NOTICE: id must be unique between EVERY and pair /}
{/
NOTICE: inside the pair, and must have the same id /}
Right click to see the menu
);
}
ReactDOM.render(, document.getElementById("main"));
``
see
usage docs /
examples for more details.
API
API docs
FAQs
ALL FAQs
Who's using react-contextmenu?
-
react-data-grid
-
teamup.com
-
Spotify Web Player
Contributors
All Contributors
Changelog
For Changelog, see
releases
License
MIT. Copyright(c)
Vivek Kumar Bansal
[npm-url]: https://npmjs.org/package/react-contextmenu
[npm-image]: http://img.shields.io/npm/v/react-contextmenu.svg?style=flat-square
[travis-url]: https://travis-ci.org/vkbansal/react-contextmenu
[travis-image]: http://img.shields.io/travis/vkbansal/react-contextmenu/master.svg?style=flat-square
[deps-url]: https://david-dm.org/vkbansal/react-contextmenu
[deps-image]: https://img.shields.io/david/vkbansal/react-contextmenu.svg?style=flat-square
[dev-deps-url]: https://david-dm.org/vkbansal/react-contextmenu
[dev-deps-image]: https://img.shields.io/david/dev/vkbansal/react-contextmenu.svg?style=flat-square
[climate-url]: https://codeclimate.com/github/vkbansal/react-contextmenu
[climate-image]: http://img.shields.io/codeclimate/github/vkbansal/react-contextmenu.svg?style=flat-square