---
url: "https://vueda.dev/v3/reference/api/vue/ContextMenuContent.md"
title: "ContextMenuContent"
---

# ContextMenuContent

## Overview

The content panel of a context menu, rendered inside a portal.

Theme entry: [ContextMenuContent](/v3/reference/theming/keys/ContextMenuContent.md)

## Props

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| <span id="prop-themeOverride">themeOverride</span> | `Object` |  | `null` | A partial ThemeObject keyed by component name, merged over this component's theme and provided to descendants. |
| <span id="prop-class">class</span> | `import('vue').HTMLAttributes['class']` |  | `undefined` | Additional CSS classes to apply to the root element. |
| <span id="prop-as">as</span> | `string\|object` |  | `undefined` | The element or component to render as. |
| <span id="prop-asChild">asChild</span> | `boolean` |  | `false` | When true, merges props onto the child element instead of rendering a wrapper. |
| <span id="prop-forceMount">forceMount</span> | `boolean` |  | `undefined` | Used to force mounting when more control is needed. |
| <span id="prop-loop">loop</span> | `boolean` |  | `undefined` | When true, keyboard navigation will loop from last item to first, and vice versa. |
| <span id="prop-avoidCollisions">avoidCollisions</span> | `boolean` |  | `undefined` | When true, overrides side and align preferences to prevent collisions. |
| <span id="prop-collisionPadding">collisionPadding</span> | `number\|object` |  | `undefined` | Collision padding in pixels. |
| <span id="prop-collisionBoundary">collisionBoundary</span> | `object\|array` |  | `undefined` | An element to use as the collision boundary. |
| <span id="prop-sticky">sticky</span> | `string` |  | `undefined` | The sticky behavior on the align axis. |
| <span id="prop-hideWhenDetached">hideWhenDetached</span> | `boolean` |  | `undefined` | Whether to hide the content when the trigger becomes fully occluded. |

## Slots

### `default` {#slot-default}

Slot.

## Events

| Name | Description |
| --- | --- |
| `escapeKeyDown` | Emitted when the Escape key is pressed. |
| `pointerDownOutside` | Emitted when a pointer-down event occurs outside the content. |
| `focusOutside` | Emitted when focus moves outside the content. |
| `interactOutside` | Emitted when any interaction occurs outside the content. |
| `closeAutoFocus` | Emitted when focus returns to the trigger after the content closes. |

[Full event reference](/v3/reference/api/vue/ContextMenuContent/events.md)

## Source

`client/lib/navigation/context-menu/ContextMenuContent.vue`
