KPStandardIconButton

fun KPStandardIconButton(icon: ImageVector, size: IconButtonSize, onClick: () -> Unit, modifier: Modifier = Modifier, enabled: Boolean = true, colors: ButtonColors = IconButtonDefaults.buttonColors(), interactionSource: MutableInteractionSource = remember { MutableInteractionSource() })

A composable function that displays an icon button with customizable size, colors, and behavior.

Parameters

icon

The ImageVector representing the icon to display inside the button.

size

The IconButtonSize defining the size of the button and its icon.

onClick

The lambda to invoke when the button is clicked.

modifier

The Modifier to apply to the button. Defaults to Modifier.

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.