ToggleChip

fun ToggleChip(checked: Boolean, onCheckedChanged: (Boolean) -> Unit, label: String, toggleControl: ToggleChipToggleControl, modifier: Modifier = Modifier, icon: PaintableIcon? = null, secondaryLabel: String? = null, colors: ToggleChipColors = ToggleChipDefaults.toggleChipColors(), enabled: Boolean = true, interactionSource: MutableInteractionSource? = null, iconTint: Color = Color.Unspecified)

This component is an alternative to ToggleChip, providing the following:

  • a convenient way of providing a label and a secondary label;

  • a convenient way of choosing the toggle control;

  • a convenient way of providing an icon and setting the icon to be mirrored in RTL mode;