When to use it
Use to align repeated settings rows. The trailing content should be a compact native control rather than unrelated actions.
Align a setting title and explanation with an optional graphic and trailing native control.
Native example
Use to align repeated settings rows. The trailing content should be a compact native control rather than unrelated actions.
LumenSettingsRow(
title = "Automatic updates",
description = "Download stable updates automatically.",
control = {
LumenToggle(
label = "Automatic updates",
checked = automaticUpdates,
showLabel = false,
onCheckedChange = ::setAutomaticUpdates
)
}
)Reference
The primary shared and platform-specific options exposed by LumenSettingsRow.
| API | Values or type | Default | Description |
|---|---|---|---|
| title | String | Required | Names the setting. |
| description | String? | null | Adds supporting explanation. |
| graphic | (@Composable () -> Unit)? | null | Adds an optional leading graphic. |
| control | @Composable () -> Unit | Required | Provides the trailing native control. |
Native behavior
Use to align repeated settings rows. The trailing content should be a compact native control rather than unrelated actions.
The explanatory copy and trailing control remain contained while the control preserves independent focus and semantics.
Shared component