Documentation Index
Fetch the complete documentation index at: https://mintlify.com/vuetifyjs/vuetify/llms.txt
Use this file to discover all available pages before exploring further.
VMenu
TheVMenu component creates contextual menus that overlay content. It’s built on top of VOverlay and provides keyboard navigation, nested menu support, and flexible positioning.
Basic Usage
Props
Controls the visibility of the menu. Use with v-model.
Custom ID for the menu element. Auto-generated if not provided.
Indicates this menu is a submenu of another menu. Changes arrow key behavior.
activator
Element or selector string to use as the activator.
Props to bind to the activator element.
Delay in milliseconds before the menu opens.
Delay in milliseconds before the menu closes.
Whether to close the menu when clicking on its content.
Position where the menu appears relative to activator. Default is ‘bottom’ for menus, ‘end’ for submenus.
Strategy for positioning the menu.
How the menu behaves when the page is scrolled.
Offset of the menu from the activator.
Whether to display an overlay scrim behind the menu.
Custom transition component for the menu appearance.
Whether clicking outside the menu closes it.
Disables the menu activator.
Whether to trap focus within the menu when open.
Whether to return focus to activator when menu closes.
Events
Emitted when the menu is opened or closed.
Slots
Slot for the element that triggers the menu. The props must be bound to the activator element.
default
Content displayed inside the menu overlay.
Navigation Patterns
Controlled Menu
Nested Menus
Custom Position
Persistent Menu
Keyboard Navigation
The menu component includes built-in keyboard navigation:- Arrow Down: Focus next menu item
- Arrow Up: Focus previous menu item
- Enter: Activate focused item (when
closeOnContentClickis false) - Tab: Move through focusable elements
- Escape: Close menu
- Arrow Left/Right: Navigate submenus (in RTL-aware manner)
Accessibility
The menu automatically sets ARIA attributes:aria-haspopup="menu"on the activatoraria-expandedreflects the open/closed statearia-controlsandaria-ownslink to the menu ID- Focus management for keyboard navigation