Switch

@Composable
fun Switch(active: Boolean, onToggle: (Boolean) -> Unit, modifier: Modifier = Modifier)

Creates a org.gnome.gtk.Switch used for toggle states.

Parameters

active

The state of the switch.

onToggle

Callback triggered when the switch is toggled.

modifier

Compose Modifier for layout and styling.