Skip to main content
239

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Themes
Android docs
Data displayAndroid

Descriptions

Show term and detail pairs in a framed grid.

Public APILumenDescriptionsAndroid / Compose

Native example

Use Descriptions

Use it for read-only record facts. Use a table for comparable rows.

Descriptions rendered in the Android phone emulator Lumen playground
Captured exampleAndroid phone emulatorView dark appearance
kotlin
import androidx.compose.runtime.*
import com.santi020k.lumen.*

@Composable
fun WorkspaceDetails() {
    val details = remember {
        listOf(
            LumenDescriptionItem("Workspace", "Atlas"),
            LumenDescriptionItem("Plan", "Team"),
            LumenDescriptionItem("Region", "Colombia"),
            LumenDescriptionItem("Billing", "Monthly")
        )
    }
    LumenDescriptions(details, columns = 2, label = "Workspace details")
}
Android
A two-column list of workspace details that pairs each term with its value.

Reference

Public API

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

APIValues or typeDefaultDescription
items / columns / labelpairs / grid columns / list namerequired / 1 / noneUse it for read-only record facts. React Native items use id ?? label as stable identity; provide unique IDs for repeated or changing labels. Duplicate identities are rejected.

Native behavior

Design and accessibility

When to use it

Use it for read-only record facts. Use a table for comparable rows.

Accessibility

Each item reads its term before its detail.

Shared component

Available on other platforms

React NativeApple / SwiftUI Web
Android docsCompose module