Skip to main content
239

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Themes
Apple docs
LayoutApple

Popover

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

Public APIlumenPopoverApple / SwiftUISwift product: LumenUI

Apple availability

Supported native targets

Import LumenUI in the target that uses this component. iPad support follows the iOS package baseline and uses native iPad layout behavior.

iPhone · iOS 16+iPad · iPadOS 16+Mac · macOS 13+Apple Vision · visionOS 1+

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 iPhone simulator Lumen playground
Captured exampleiPhone simulatorView dark appearance
swift
LumenButton("Options") { presented = true }
    .lumenPopover(isPresented: $presented, placement: .bottomStart) {
        LumenCheckbox("Email updates", isChecked: $subscribed)
        LumenButton("Done") { presented = false }
    }

Reference

Public API

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

APIValues or typeDefaultDescription
isPresented / 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 NativeAndroid / Compose Web
Apple docsSwiftUI package