Skip to main content
161

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Android docs
FormsAndroid

Picker

Choose one controlled value through native or accessible menu presentation.

Public APILumenPickerAndroid / Compose

Native example

Use Picker

Use native menu or picker presentation for a compact single choice. Use Segmented control when a small peer set should remain visible.

Picker rendered in the Android phone emulator Lumen playground
Verified runtime captureAndroid phone emulator
kotlin
LumenPicker(
    label = "Profile",
    value = profile,
    options = profileOptions,
    onValueChange = ::setProfile
)

Reference

Public API

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

APIValues or typeDefaultDescription
valueTRequiredStores the selected value.
optionsList<LumenPickerOption<T>>RequiredProvides labeled native options.
onValueChange(T) -> UnitRequiredUpdates the selected value.
enabledBooleantrueControls native availability or presentation.

Native behavior

Design and accessibility

When to use it

Use native menu or picker presentation for a compact single choice. Use Segmented control when a small peer set should remain visible.

Accessibility

The picker retains native selection semantics, keyboard behavior, and assistive-technology announcements for its selected value.

Shared component

Available on other platforms

React NativeApple / SwiftUI
Android docsCompose module