0.1.0 • Published 5 years ago

react-cxm v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

React ContextMenu

A simple library that allows you to create a context menu quickly and easily. The library uses react-popper as a positioning engine.

Note that the version is an early alpha version, but it should rather not cause problems.

Usage

<ContextMenu
  popperOptions={/* https://popper.js.org/docs/v2/modifiers/ */}
  // "hide" is a method that allows you to manually hide the context menu
  element={(hide) => ( /* ... your context menu element */ )}
>
  {/* ... Your component's code */}
</ContextMenu>

License

MIT | Przemysław Tyczyński