GithubHelp home page GithubHelp logo

timbokz / react-context-menu-wrapper Goto Github PK

View Code? Open in Web Editor NEW
23.0 5.0 5.0 3.31 MB

🖱️ Unopinionated context menu component for React.

Home Page: https://timbokz.github.io/react-context-menu-wrapper/v3/

License: MIT License

JavaScript 31.67% HTML 23.22% CSS 11.47% TypeScript 33.64%
react context-menu context-menu-react react-component react-library event-handler menu

react-context-menu-wrapper's Introduction

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

react-context-menu-wrapper's People

Contributors

timbokz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

react-context-menu-wrapper's Issues

No typescript types?

I saw your post on reddit about this and looks close to what I'm looking for.

No typescript types though?

Next JS Compatiable

Great Package, I'm trying to use it in a NextJS app, attempting to do a local menu i get a window undefined issue.
Could you add proper checks for window and navigation before trying to access them?
Thank you for creating this package.

Server Error

ReferenceError: window is not defined
This error happened while generating the page. Any console logs will be displayed in the terminal window.
/node_modules/react-context-menu-wrapper/lib/util.js (17:33)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.