PopupContextMenuProps Interface

Properties for PopupContextMenu component



Name Type Description
animate undefined | boolean Indicates whether to use animation for open/close (defaults to true)  
ariaLabel undefined | string accessibility label  
autoflip undefined | boolean Whether menu flips directions based on screen edge.  
children undefined | ReactNode ContextMenu items  
edgeLimit undefined | boolean Whether menu hugs screen edge when autoflip is off.  
hotkeySelect undefined | boolean Whether Hotkey press selects item, or just highlights item.  
isOpen boolean Indicates whether the popup is shown or not (defaults to false)  
left undefined | number Left position (absolute positioning - defaults to 0)  
offset undefined | number Offset from the parent (defaults to 4)  
onClose undefined | () => void    
onEnter undefined | () => void    
onEsc undefined | (event: KeyboardEvent<Element>) => void    
onOpen undefined | () => void    
onOutsideClick undefined | (e: MouseEvent) => void    
onSelect undefined | (event: undefined | MouseEvent<Element, MouseEvent>) => void    
position undefined | RelativePosition Direction (relative to the target) to which the popup is expanded (defaults to Bottom)  
selectedIndex undefined | number starting menu item selected index Default: -1  
target | HTMLElement Target element to position popup  
top undefined | number Top position (absolute positioning - defaults to 0)  

Inherited properties

Name Type Inherited from Description
className undefined | string CommonProps Custom CSS class name
itemId undefined | string CommonProps Optional unique identifier for item.
style undefined | CSSProperties CommonProps Custom CSS style properties

Defined in

Last Updated: 26 February, 2024