# vue-simple-context-menu **Repository Path**: mirrors_johndatserakis/vue-simple-context-menu ## Basic Information - **Project Name**: vue-simple-context-menu - **Description**: 📌 Simple context-menu component built for Vue. Works well with both left and right clicks. Nothing too fancy, just works and is simple to use. - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: develop - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-02-24 - **Last Updated**: 2025-12-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # vue-simple-context-menu Simple context-menu component built for Vue. Works well with both left and right clicks. Nothing too fancy, just works and is simple to use.
- [Demo](https://johndatserakis.github.io/vue-simple-context-menu/) - [GitHub](https://github.com/johndatserakis/vue-simple-context-menu) - [npm](https://www.npmjs.com/package/vue-simple-context-menu) - [StackBlitz](https://stackblitz.com/edit/vue-chj3sg?file=src/App.vue) ## Vue 3 Support Vue 3 is supported from `v4.0.0` and beyond (current `master`). To use `vue-simple-context-menu` with Vue 2, use `v3.4.2`. ## Install ``` yarn add vue-simple-context-menu ``` ## About Just a simple little menu to be shown where a click happens - closes after use automatically by clicking an option or outside of the menu. Multiple menus are supported - just make sure to use a unique string as your `element-id` prop value. A nice feature that comes baked in is the menu placement after a click - it sits just ever so slightly under your click location - so that any hover style you had on the item that was clicked gets removed nicely. I modeled it after the macOS right click menu. ## Usage ```js import { createApp } from 'vue'; import VueSimpleContextMenu from 'vue-simple-context-menu'; import 'vue-simple-context-menu/dist/vue-simple-context-menu.css'; const app = createApp(App); app.component('vue-simple-context-menu', VueSimpleContextMenu); ``` ```html