ThemeSwitch

fun ThemeSwitch(checked: Boolean, onCheckedChange: (Boolean) -> Unit, label: String, modifier: Modifier = Modifier, enabled: Boolean = true, supportingText: String? = null, tooltip: String? = null)

A setting row with label (and optional supportingText) on the leading edge and a switch on the trailing edge. Tapping anywhere on the row toggles checked.

Parameters

tooltip

optional explanation shown by an InfoTooltip after the label.