Skip to content

TimboKZ/react-context-menu-wrapper

Repository files navigation

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 and functional components. If your project does not support them, consider using v2 or below.

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, Bootstrap) or when you need to implement some non-trivial logic for your context menu (e.g. Ogma context menus with tagging support).

Preview

Gif of the context menu library in action.

Contributing

Please enable ESLint and Prettier integration in your editor, and use the provided configs.

License

MIT © Tim K. 2020