ToggleChip

fun ToggleChip(checked: Boolean, onCheckedChanged: (Boolean) -> Unit, label: String, toggleControl: ToggleChipToggleControl, modifier: Modifier = Modifier, icon: ImageVector? = null, iconRtlMode: IconRtlMode = IconRtlMode.Default, secondaryLabel: String? = null, colors: ToggleChipColors = ToggleChipDefaults.toggleChipColors(), enabled: Boolean = true, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() })

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;