@mantine/core
Version:
React components library focused on usability, accessibility and developer experience
13 lines (12 loc) • 818 B
TypeScript
export interface MenuContextMenuProps {
/** Element that opens the menu when right-clicked. Menu dropdown is positioned at the cursor. The trigger element must not call `event.preventDefault()` in its own `onContextMenu` handler, otherwise the native context menu is not suppressed. */
children: React.ReactNode;
/** If set, the right-click trigger is disabled and the browser's default context menu is shown */
disabled?: boolean;
/** Delay in ms before a touch long-press opens the dropdown on touch devices, `500` by default */
longPressDelay?: number;
}
export declare function MenuContextMenu(props: MenuContextMenuProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
export declare namespace MenuContextMenu {
var displayName: string;
}