KPContainedIconButton

fun KPContainedIconButton(icon: ImageVector, size: ContainedIconButtonSize, onClick: () -> Unit, modifier: Modifier = Modifier, enabled: Boolean = true, colors: ContainedIconButtonColors = IconButtonDefaults.containedButtonColors(), interactionSource: MutableInteractionSource = remember { MutableInteractionSource() })

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

Parameters

icon

The ImageVector representing the icon to display inside the button.

size

The ContainedIconButtonSize defining the sizes for the button and its container.

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 ContainedIconButtonColors to use for styling the button's background, content, and container colors. Defaults to IconButtonDefaults.containedButtonColors.

interactionSource

The MutableInteractionSource to track interaction events. Defaults to a new instance.