Skip to main content
239

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Themes
Android docs
Data displayAndroid

Change summary

Review before and after values for the changes the host reports.

Public APILumenChangeSummaryAndroid / Compose

Native example

Use Change summary

The host decides what changed and writes the summary text. Use it on confirmation and audit screens.

Change summary rendered in the Android phone emulator Lumen playground
Captured exampleAndroid phone emulatorView dark appearance
kotlin
@Composable
fun PlanChangeReview(onConfirm: () -> Unit, onEdit: () -> Unit) {
    LumenChangeSummary(
        items = listOf(
            LumenChangeSummaryItem("plan", "Plan", before = "Starter", after = "Team", changed = true),
            LumenChangeSummaryItem("seats", "Seats", before = "5", after = "12", changed = true),
            LumenChangeSummaryItem("billing", "Billing cycle", before = "Monthly", after = "Monthly", changed = false)
        ),
        label = "Review changes",
        summary = "2 of 3 fields changed"
    ) {
        Row(horizontalArrangement = Arrangement.spacedBy(LumenSpacing.Sm)) {
            LumenButton(onClick = onConfirm, size = LumenControlSize.Sm) { LumenText("Confirm changes") }
            LumenButton(onClick = onEdit, intent = LumenButtonIntent.Quiet, size = LumenControlSize.Sm) { LumenText("Edit") }
        }
    }
}
Android
A review step that lists each edited field with a Changed or Unchanged pill and its before and after values, followed by confirm and edit actions.

Reference

Public API

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

APIValues or typeDefaultDescription
items / label / summarychanged fields / heading / count textrequired / Changes / noneThe host decides what changed and writes the summary text.

Native behavior

Design and accessibility

When to use it

The host decides what changed and writes the summary text. Use it on confirmation and audit screens.

Accessibility

A titled section whose rows read the field, its state, and both values in order.

Shared component

Available on other platforms

React NativeApple / SwiftUI Web
Android docsCompose module