NUI / Components / Popup & Selection

MenuAnchor

Partially implementedPopup & Selection

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.

nui
MenuAnchor InventoryMenu {
    text: "Open"
    command: "OpenInventoryMenu"
}

Supported properties

PropertyTypeRequiredDefaultDescription
textstringNoEmptyAnchor label text.
commandstringNoEmptyEvent Graph command.
openboolNofalseInitial open state.
enabledboolNotrueWhether the anchor can be used.
focusableboolNotrueWhether the anchor can receive focus.
backgroundColorcolorNoDefaultAnchor background color.
hoveredColorcolorNoDefaultHover color.
pressedColorcolorNoDefaultPressed color.
borderColorcolorNoDefaultBorder color.
borderThicknessnumberNo0Border thickness.
radiusnumberNo0Corner radius.
widthnumberNoAutoDesired width.
heightnumberNoAutoDesired height.
visibleboolNotrueVisibility 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.

nui
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.