UNPKG

@cbinsights/fds

Version:
15 lines (14 loc) 743 B
import React from 'react'; export interface ContextMenuProps { /** Event handler called when the open state of the context menu changes. */ onOpenChange?: (open: boolean) => void; /** ContextMenu content, items and trigger */ children: React.ReactNode; } declare const ContextMenu: { ({ children, onOpenChange }: ContextMenuProps): JSX.Element; Item: ({ children, disabled, onSelect, ...rest }: import("./ContextMenuItem").ContextMenuItemProps) => JSX.Element; Trigger: ({ children, asChild, ...rest }: import("./ContextMenuTrigger").ContextMenuTriggerProps) => JSX.Element; Content: ({ children, ...rest }: import("./ContextMenuContent").ContextMenuContentProps) => JSX.Element; }; export default ContextMenu;