When to use it
The host decides what changed and writes the summary text. Use it on confirmation and audit screens.
Review before and after values for the changes the host reports.
Native example
The host decides what changed and writes the summary text. Use it on confirmation and audit screens.
@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") }
}
}
}Reference
The primary shared and platform-specific options exposed by LumenChangeSummary.
| API | Values or type | Default | Description |
|---|---|---|---|
| items / label / summary | changed fields / heading / count text | required / Changes / none | The host decides what changed and writes the summary text. |
Native behavior
The host decides what changed and writes the summary text. Use it on confirmation and audit screens.
A titled section whose rows read the field, its state, and both values in order.
Shared component