Skip to main content
161

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Android docs
ActionsAndroid

Menu

Present a native anchored action menu with shared item-state semantics.

Public APILumenMenuAndroid / Compose

Native example

Use Menu

Use for a short set of contextual actions. Keep labels unique and concise, and do not hide a screen's only primary action inside a menu.

Menu rendered in the Android phone emulator Lumen playground
Verified runtime captureAndroid phone emulator
kotlin
LumenMenu(
    expanded = showMenu,
    onDismissRequest = { showMenu = false },
    items = actions
)

Reference

Public API

The primary shared and platform-specific options exposed by LumenMenu.

APIValues or typeDefaultDescription
itemsNative Lumen menu item collectionRequiredProvides labeled actions and states.
expandedBooleanCollapsedControls or reports native menu presentation.
disabledBooleanfalseKeeps an unavailable item readable but inactive.
destructive / roleDestructive action rolefalse / nilMarks a destructive action semantically and visually.

Native behavior

Design and accessibility

When to use it

Use for a short set of contextual actions. Keep labels unique and concise, and do not hide a screen's only primary action inside a menu.

Accessibility

The trigger exposes expanded state and each native menu action reports its label, disabled state, and destructive role.

Shared component

Available on other platforms

React NativeApple / SwiftUI
Android docsCompose module