react-context-menu-wrapper
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

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).

View documentation and examples

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

/react-context-menu-wrapper/

    Package Sidebar

    Install

    npm i react-context-menu-wrapper

    Weekly Downloads

    34

    Version

    3.0.0

    License

    MIT

    Unpacked Size

    46.9 kB

    Total Files

    21

    Last publish

    Collaborators

    • v1ndic4te