NUI / Components / Popup & Selection
MenuAnchor
MenuAnchor is intended to anchor popup or menu content to a UI element.
Popup/menu behavior is incomplete and should not be treated as production-ready.
Partially implemented component
This page is a warning reference. Do not treat this component as stable production-ready syntax.
Overview
MenuAnchor is intended to anchor popup or menu content to a UI element.
When to use
- Treat this page as a warning reference for future popup and selection behavior.
- Do not use MenuAnchor as a normal production component yet.
Children
Popup/menu children are not available as public syntax yet.
Basic syntax
Preview syntax only
This example is shown to document the current partial surface. It should not be copied as stable production-ready guidance.
MenuAnchor InventoryMenu {
text: "Open"
command: "OpenInventoryMenu"
}Supported properties
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
text | string | No | Empty | Anchor label text. |
command | string | No | Empty | Event Graph command. |
open | bool | No | false | Initial open state. |
enabled | bool | No | true | Whether the anchor can be used. |
focusable | bool | No | true | Whether the anchor can receive focus. |
backgroundColor | color | No | Default | Anchor background color. |
hoveredColor | color | No | Default | Hover color. |
pressedColor | color | No | Default | Pressed color. |
borderColor | color | No | Default | Border color. |
borderThickness | number | No | 0 | Border thickness. |
radius | number | No | 0 | Corner radius. |
width | number | No | Auto | Desired width. |
height | number | No | Auto | Desired height. |
visible | bool | No | true | Visibility flag. |
Contextual properties
Context rule for preview syntax
MenuAnchor may receive stack, canvas, grid, wrap, or ExpandableArea slot properties only when it is authored as a direct child of the matching parent. Popup content children should not be documented as normal working public syntax yet.
Full syntax example
Partial behavior
This example records the current partial surface only. Popup/menu behavior is incomplete.
MenuAnchor InventoryMenu {
text: "Open"
command: "OpenInventoryMenu"
open: false
enabled: true
focusable: true
backgroundColor: "#111827"
hoveredColor: "#1F2937"
pressedColor: "#0F172A"
borderColor: "#334155"
borderThickness: 1
radius: 4
width: 160
height: 40
visible: true
}Limitations
- Popup content, opening callbacks, and menu-child contracts are incomplete.
- Do not mix MenuAnchor into normal implemented component navigation without a warning badge.
- Use command, not the legacy action alias, in public documentation.