Skip to main content
239

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Themes
Android docs
LayoutAndroid

Popover

Show anchored interactive content with platform-native presentation, including a native Modal in React Native.

Public APILumenPopoverAndroid / Compose

Native example

Use Popover

Use it for short forms or option panels. React Native uses a native Modal that preserves surrounding React contexts; background interaction follows modal semantics. Supply non-interactive trigger content and an initialFocusRef for the first panel control. SwiftUI uses system popover presentation, Compose uses a focusable Popup, and ArkUI uses non-modal bindPopup without a mask. Use a sheet for long tasks.

Popover rendered in the Android phone emulator Lumen playground
Captured exampleAndroid phone emulatorView dark appearance
kotlin
var open by remember { mutableStateOf(false) }
LumenPopover(
    expanded = open, onDismissRequest = { open = false },
    anchor = { anchorModifier ->
        LumenButton(onClick = { open = true }, modifier = anchorModifier) { LumenText("Details") }
    }, label = "Workspace details"
) { LumenText("Three members can view this workspace.") }

Reference

Public API

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

APIValues or typeDefaultDescription
expanded / placement / contentcontrolled visibility / logical side and alignment / interactive panel contentrequired / bottom-start / requiredUse it for short forms or option panels.

Native behavior

Design and accessibility

When to use it

Use it for short forms or option panels. React Native uses a native Modal that preserves surrounding React contexts; background interaction follows modal semantics. Supply non-interactive trigger content and an initialFocusRef for the first panel control. SwiftUI uses system popover presentation, Compose uses a focusable Popup, and ArkUI uses non-modal bindPopup without a mask. Use a sheet for long tasks.

Accessibility

The trigger reports expanded state; focus moves into the panel and back to the trigger. React Native uses native modal interaction and accessibility semantics.

Shared component

Available on other platforms

React NativeApple / SwiftUI Web
Android docsCompose module