An open API service indexing awesome lists of open source software.

https://github.com/timbokz/react-context-menu-wrapper

🖱️ Unopinionated context menu component for React.
https://github.com/timbokz/react-context-menu-wrapper

context-menu context-menu-react event-handler menu react react-component react-library

Last synced: 12 months ago
JSON representation

🖱️ Unopinionated context menu component for React.

Awesome Lists containing this project

README

          

React Context Menu Wrapper
======



NPM package


MIT license


NPM downloads


GitHub stars


Chat on Discord

# Introduction

> **Important:** React Context Menu Wrapper v3+ uses [React hooks](https://reactjs.org/docs/hooks-intro.html) and
> functional components. If your project does not support them, consider
> [using v2 or below](https://timbokz.github.io/react-context-menu-wrapper/v2/).

This library provides a simple wrapper for your context menus. It handles user interaction on desktop and mobile
devices, and guarantees correct context menu positioning.

In an effort to stay unopinionated, this library does not provide any styling or additional components. It is up to you
define your own styles and logic for the menu. This is useful when your CSS framework already provides dropdown menu
styling (e.g. [Bulma](https://bulma.io/), [Bootstrap](https://getbootstrap.com/)) or when you need to implement some
non-trivial logic for your context menu (e.g. [Ogma context menus](https://github.com/TimboKZ/Ogma) with tagging
support).

#### [View documentation and examples](https://timbokz.github.io/react-context-menu-wrapper/v3/)

## Preview

![Gif of the context menu library in action.](https://timbokz.github.io/react-context-menu-wrapper/v2/context-menu-shared.gif)

## Contributing

Please enable [ESLint](https://eslint.org/docs/user-guide/integrations) and
[Prettier](https://prettier.io/docs/en/editors.html) integration in your editor, and use the provided configs.

## License

MIT © [Tim K.](https://github.com/TimboKZ) 2020