import { CContextMenu } from '@coreui/react-pro'
| Property | Default | Type |
|---|
Configures the auto close behavior: - true — closes on a click inside or outside the menu, - 'inside' — closes on a click inside the menu only, - 'outside' — closes on a click outside the menu only, - false — closes only on the Escape key. |
A string of all className you want applied to the trigger area. |
The element the panel is rendered into instead of document.body. Implies portal. Inside a modal dialog it goes into the dialog instead, because the rest of the page is inert. |
Renders the panel in the dark theme. |
Keeps the menu closed and lets the browser's own menu through. |
The distance of the panel from the pointer, as [skidding, distance]. |
Callback fired when the menu is hidden. |
Callback fired when the menu is shown. |
Where the panel opens relative to the pointer. It flips when that side of the viewport is short, and a logical start or end side resolves to the side the writing direction puts it on. |
Renders the panel through a portal. |
The menu itself is a <CMenuContent> with the same items, headers, dividers and submenus as a Menu.