KPStandardIconToggleButton
fun KPStandardIconToggleButton(checked: Boolean, checkedIcon: ImageVector, unCheckedIcon: ImageVector, size: IconButtonSize, onCheckedChange: (Boolean) -> Unit, modifier: Modifier = Modifier, enabled: Boolean = true, colors: ButtonColors = IconButtonDefaults.buttonColors(), interactionSource: MutableInteractionSource = remember { MutableInteractionSource() })
A composable function that displays a toggleable icon button with customizable size, colors, and behavior for checked and unchecked states.
Parameters
checked
Whether the button is in the checked state.
checkedIcon
The ImageVector representing the icon to display when the button is checked.
unCheckedIcon
The ImageVector representing the icon to display when the button is unchecked.
size
The IconButtonSize defining the size of the button and its icons.
onCheckedChange
The lambda to invoke when the checked state changes.
enabled
Whether the button is enabled. Defaults to true
.
colors
The ButtonColors to use for styling the button's background and content colors. Defaults to IconButtonDefaults.buttonColors.
interactionSource
The MutableInteractionSource to track interaction events. Defaults to a new instance.