ContextSubMenuProps Interface
Deprecated in 4.16.0. Props of deprecated ContextSubMenu component.
Properties for the ContextSubMenu component
Extends
- Omit<ContextMenuItemProps, "label">
- Omit<ContextMenuProps, "label">
- CommonProps
Properties
| Name | Type | Description | |
|---|---|---|---|
| label | string | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Text/jsx to display in the list item |
Inherited properties
| Name | Type | Inherited from | Description |
|---|---|---|---|
| autoflip Inherited | boolean | undefined | Omit | Whether menu flips directions based on screen edge. |
| badgeKind Inherited | string & { T } | "technical-preview" | "new" | "deprecated" | Omit | Specifies the kind of badge, if any, to be overlaid on the item. |
| badgeType Inherited | BadgeType | undefined | Omit | Badge to be overlaid on the item. |
| direction Inherited | ContextMenuDirection | undefined | Omit | Which direction the menu opens. |
| disabled Inherited | boolean | ConditionalBooleanValue | Omit | Disables any onSelect calls, hover/keyboard highlighting, and grays item. |
| edgeLimit Inherited | boolean | undefined | Omit | Whether menu hugs screen edge when autoflip is off. |
| floating Inherited | boolean | undefined | Omit | whether menu floats on the viewport, or the page. |
| hidden Inherited | boolean | ConditionalBooleanValue | Omit | Indicates whether the item is visible or hidden. |
| hideIconContainer Inherited | boolean | undefined | Omit | Hide the icon container. |
| hotkeySelect Inherited | boolean | undefined | Omit | Whether Hotkey press selects item, or just highlights item. |
| icon Inherited | IconSpec | undefined | Omit | Icon to display in the left margin. |
| iconRight Inherited | IconSpec | undefined | Omit | Icon to display in the right margin. |
| isSelected Inherited | boolean | undefined | Omit | |
| itemId Inherited | string | undefined | CommonProps | Optional unique identifier for item. |
| offset Inherited | number | undefined | Omit | Additional offset to apply. |
| onEsc Inherited | (data: any) => any | undefined | Omit | when Escape button is pressed |
| onOutsideClick Inherited | (event: MouseEvent) => any | undefined | Omit | When click is registered outside of ContextMenu. |
| onSelect Inherited | (event: any) => any | undefined | Omit | |
| opened Inherited | boolean | Omit | Whether ContextMenu is currently opened. |
| selectedIndex Inherited | number | undefined | Omit | starting menu item selected index Default: -1 |
Defined in
Last Updated: 14 October, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.