Vue3 Context Menu screenshot

Vue3 Context Menu

Author Avatar Theme by Imengyu
Updated: 19 May 2025
575 Stars

A very simple context menu component for Vue3 一个简洁美观简单的Vue3右键菜单组件

Categories

Overview:

The vue3-context-menu is a context menu component designed for Vue3. It provides a simple and easy-to-use solution with small file size. The component offers both component mode and function mode, along with multiple theme styles for customization.

Features:

  • Simple and easy to use
  • Component mode and function mode
  • Multiple theme styles available
  • Customizable themes
  • Small file size
  • Documentation available

Installation:

To install the vue3-context-menu component, follow these steps:

  1. Import in the main.ts file:
import vue3ContextMenu from 'vue3-context-menu'
  1. Use the ContextMenu in the .vue file:
<template>
  <vue3ContextMenu></vue3ContextMenu>
</template>

<script>
export default {
  components: {
    'vue3ContextMenu': vue3ContextMenu
  }
}
</script>
  1. Alternatively, you can use the component directly by importing it:
import { ContextMenu } from 'vue3-context-menu'

Summary:

The vue3-context-menu is a versatile component for Vue3 applications that offers a customizable context menu with multiple theme options. It is easy to integrate, provides a variety of themes, and can be used in both component and function modes. With its small file size and documentation available, it is a convenient choice for adding context menus to Vue3 projects.