Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/mui/base-ui/llms.txt

Use this file to discover all available pages before exploring further.

ContextMenu

Displays a menu triggered by right-clicking or long-pressing.

Import

import * as ContextMenu from '@base-ui/react/context-menu';

ContextMenu.Root

Groups all parts of the context menu. Doesn’t render its own HTML element.

Props

ContextMenu.Trigger

The area that triggers the context menu when right-clicked.

ContextMenu.Portal

Portals the context menu popup to a different part of the DOM.

ContextMenu.Positioner

Positions the context menu popup.

ContextMenu.Popup

The popup that contains the context menu items.

ContextMenu.Item

An item in the context menu.

Props

ContextMenu.Group

Groups related context menu items.

ContextMenu.GroupLabel

Labels a group of context menu items.

ContextMenu.Submenu

A menu nested within the context menu.

ContextMenu.SubmenuTrigger

The item that opens a submenu.

ContextMenu.RadioGroup

Groups menu items that function as radio buttons.

ContextMenu.RadioItem

A context menu item that acts as a radio button.

ContextMenu.CheckboxItem

A context menu item that acts as a checkbox.

ContextMenu.Arrow

An optional arrow element.

ContextMenu.Backdrop

An optional overlay displayed beneath the context menu popup.

Build docs developers (and LLMs) love