ContextMenuArgs
Defines the arguments passed to context menu display functions. Specifies the target element and positioning coordinates for rendering the context menu. Used to control where and how the context menu appears in response to user interactions.
Props
The following table outlines the props for the ContextMenuArgs:
| Name | Type | Default | Description |
|---|---|---|---|
| left | number | undefined | Specifies the horizontal offset position (in pixels) for displaying the context menu. Used to adjust the left position of the menu relative to the target element or viewport. |
| target | HTMLElement | - | Specifies the target HTML element on which the context menu is triggered. Used as the reference point for context menu positioning and behavior. |
| top | number | undefined | Specifies the vertical offset position (in pixels) for displaying the context menu. Used to adjust the top position of the menu relative to the target element or viewport. |