AnyLumino
API referenceastryxsurfaces

MoreMenu

Render a compact overflow action menu.

Astryx Props

JSON-safe MoreMenu props forwarded to Astryx.

Supported Astryx props include:

  • items (DropdownMenuOption[]; required): Menu items: data array of actions, dividers, and sections. Same type as DropdownMenu items prop.
  • label (string): Accessible label for the trigger button (aria-label) and tooltip text.
  • variant (ButtonVariant): Visual style variant of the trigger button.
  • size (ButtonSize): Size of the trigger button.
  • icon (ReactNode): Override the default three-dot icon. Accepts any ReactNode.
  • isDisabled (boolean): Whether the menu trigger is disabled.
  • xstyle (StyleXStyles): StyleX styles for layout customization (margins, positioning, sizing). Must be a stylex.create() value, not an inline style object like style={{}}.

Props typed as React nodes, render functions, event handlers, refs, or StyleX styles are documented for Astryx parity but cannot be serialized directly from Python unless the wrapper adapts them.

See Astryx component docs: https://astryx.atmeta.com/components/MoreMenu.

Functions

constructor__init__(items, *, label='More options', variant='ghost', disabled=False, callbacks=None, action_callbacks=None, size=None, open=False, auto_focus=None, **props) -> None
paramitemsIterable[Any]

Item records used by generated child components or static search sources.

paramlabelstr
= 'More options'

Visible or accessible label for the component.

paramvariantstr
= 'ghost'

Astryx visual variant.

paramdisabledbool
= False

Whether the component should render disabled.

paramcallbacksIterable[Callable[[ComponentWidget], None]] | None
= None

Python callbacks invoked for frontend activations.

paramaction_callbacksIterable[Callable[[ComponentWidget, Any], None]] | None
= None

Python callbacks receiving the selected menu value.

paramsizestr | None
= None

Trigger button size.

paramopenbool
= False

Controlled menu visibility.

paramauto_focusbool | None
= None

Whether the first menu item receives focus on open.

parampropsAny
= {}

Returns

None

On this page