1.1.0 • Published 5 years ago

semantic-ui-react-context-menu v1.1.0

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

semantic-ui-react-context-menu

Component for semantic-ui-react

Installation

npm install --save semantic-ui-react-context-menu

Usage

import ContextMenu from 'semantic-ui-react-context-menu';

const MyComponent = () => (
  <ContextMenu
    trigger={<div />}
    items={[{ content: 'Remove' }]}
    onClick={(_, item) => {
      console.log(item); // { content: 'Remove' }
    }}
  />
);

The trigger must expose onContextMenu prop