Skip to main content
161

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Android docs
FormsAndroid

Search field

Filter native content with a density-aware search field and clear action.

Public APILumenSearchFieldAndroid / Compose

Native example

Use Search field

Use for filtering an existing collection. Keep search results and empty states close to the field so focus changes remain understandable.

Search field rendered in the Android phone emulator Lumen playground
Verified runtime captureAndroid phone emulator
kotlin
LumenSearchField(
    value = query,
    onValueChange = ::setQuery,
    prompt = "Search workspaces"
)

Reference

Public API

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

APIValues or typeDefaultDescription
promptStringSearchProvides placeholder and field context.
valueStringRequiredStores the current search query.
onValueChange(String) -> UnitRequiredUpdates the controlled query.
enabledBooleantrueControls native disabled presentation.
clearLabelStringClear searchNames the clear action.

Native behavior

Design and accessibility

When to use it

Use for filtering an existing collection. Keep search results and empty states close to the field so focus changes remain understandable.

Accessibility

The field uses native text input and provides a labeled clear button whenever text is present.

Shared component

Available on other platforms

React NativeApple / SwiftUI
Android docsCompose module