0.2.5 • Published 2 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
2 years ago
0.2.3
2 years ago
0.2.2
2 years ago
0.2.1
2 years ago
0.2.0
2 years ago
0.1.9
2 years ago
0.1.8
2 years ago
0.1.7
2 years ago
0.1.6
2 years ago
0.1.5
2 years ago
0.1.4
2 years ago
0.1.3
2 years ago
0.1.2
2 years ago
0.1.1
2 years ago
0.1.0
2 years ago
0.0.9
2 years ago
0.0.8
2 years ago
0.0.7
2 years ago
0.0.6
2 years ago
0.0.5
2 years ago
0.0.4
2 years ago
0.0.3
2 years ago
0.0.2
2 years ago
0.0.1
2 years ago