Skip to main content
161

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Android docs
LayoutAndroid

Disclosure

Reveal optional native content through a controlled, accessible disclosure trigger.

Public APILumenDisclosureAndroid / Compose

Native example

Use Disclosure

Use for optional supporting detail within the current screen. Keep navigation and multi-step application structure in platform navigation containers.

Disclosure rendered in the Android phone emulator Lumen playground
Verified runtime captureAndroid phone emulator
kotlin
LumenDisclosure(
    title = "Implementation notes",
    expanded = expanded,
    onExpandedChange = ::setExpanded
) {
    LumenText("Native details")
}

Reference

Public API

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

APIValues or typeDefaultDescription
titleStringRequiredNames the disclosure trigger.
expandedBooleanRequiredStores the controlled expanded state.
onExpandedChange(Boolean) -> UnitRequiredUpdates the controlled state.
descriptionString?nilAdds concise supporting copy to the trigger.
enabledBooleantrueControls native disabled state.
contentNative contentRequiredProvides content that is mounted only while expanded.

Native behavior

Design and accessibility

When to use it

Use for optional supporting detail within the current screen. Keep navigation and multi-step application structure in platform navigation containers.

Accessibility

The native trigger exposes expanded or collapsed state. Collapsed content leaves the accessibility and focus trees.

Shared component

Available on other platforms

React NativeApple / SwiftUI
Android docsCompose module