KwikSwitch

fun KwikSwitch(text: String? = null, checked: Boolean, colors: SwitchColors = kwikSwitchColors(), onCheckedChange: (Boolean) -> Unit)

Simple Material3 switch with text support

Parameters

checked

true if the switch is checked, false otherwise

text

to show next to the switch

colors

SwitchColors colors for the switch

onCheckedChange

callback to be invoked when the switch is checked or unchecked