SplitToggleChip

fun SplitToggleChip(checked: Boolean, onCheckedChanged: (Boolean) -> Unit, label: String, onClick: () -> Unit, toggleControl: ToggleChipToggleControl, modifier: Modifier = Modifier, secondaryLabel: String? = null, colors: SplitToggleChipColors = ToggleChipDefaults.splitToggleChipColors(), enabled: Boolean = true, checkedInteractionSource: MutableInteractionSource = remember { MutableInteractionSource() }, clickInteractionSource: MutableInteractionSource = remember { MutableInteractionSource() })

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

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

  • a convenient way of choosing the toggle control;