@mantine/core
Version:
React components library focused on usability, accessibility and developer experience
13 lines (12 loc) • 828 B
TypeScript
export interface PopoverContextMenuProps {
/** Element that opens the popover when right-clicked. 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 PopoverContextMenu(props: PopoverContextMenuProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
export declare namespace PopoverContextMenu {
var displayName: string;
}