0.2.5 • Published 3 years ago
react-easy-contextmenu v0.2.5
react-easy-contextmenu v0.2.2
React-easy-contextmenu replaces the browser's default context menu.
Installation
Using npm or yarn:
$ npm install react-easy-contextmenu
$ yarn add react-easy-contextmenu
How to use:
// import react-easy-contextmenu
import { ContextMenu } from 'react-easy-contextmenu';
// Place the ContextMenu inside your react component
const Home: React.FC = () => {
const menuData = [
{
menuDescription: 'First description',
menuFunction: () => alert("You're a wizard Harry."),
},
{
menuDescription: 'Second description',
menuFunction: () => alert('Luke, I am your father.'),
divider: true,
},
{
menuDescription: 'Third description',
menuFunction: () => alert('Sic Parvis Magna'),
},
];
return (
<div>
<h1>React Easy ContextMenu</h1>
<ContextMenu menuData={menuData} />
</div>
)
}
export default Home;
Finaly you're good to go!
Dev
Marco Lima |
License
Projetado com ♥ por Marco Lima. Licenciado sob a Licença MIT.
0.2.5
3 years ago
0.2.3
3 years ago
0.2.2
3 years ago
0.2.1
3 years ago
0.2.0
3 years ago
0.1.9
3 years ago
0.1.8
3 years ago
0.1.7
3 years ago
0.1.6
3 years ago
0.1.5
3 years ago
0.1.4
3 years ago
0.1.3
3 years ago
0.1.2
3 years ago
0.1.1
3 years ago
0.1.0
3 years ago
0.0.9
3 years ago
0.0.8
3 years ago
0.0.7
3 years ago
0.0.6
3 years ago
0.0.5
3 years ago
0.0.4
3 years ago
0.0.3
3 years ago
0.0.2
3 years ago
0.0.1
3 years ago