Skip to content

leonardokl/semantic-ui-react-context-menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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