IconButton

fun IconButton(onClick: () -> Unit, modifier: Modifier = Modifier, enabled: Boolean = true, colors: IconButtonColors = IconButtonDefaults.iconButtonColors(), contentPadding: PaddingValues = PaddingValues(0.dp), interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, content: @Composable () -> Unit)

Material Design standard icon button.

Equivalent to androidx.compose.material3.IconButton, but uses Modifier.defaultMinSize instead of Modifier.size to allow for larger icons.

Parameters

onClick

called when this button is clicked

modifier

the Modifier to be applied to this button

enabled

controls the enabled state of this button. When false, this component will not respond to user input, and it will appear visually disabled and disabled to accessibility services.

colors

ButtonColors that will be used to resolve the colors for this button in different states. See IconButtonDefaults.iconButtonColors.

contentPadding

the spacing values to apply internally between the container and the content

interactionSource

the MutableInteractionSource representing the stream of Interactions for this button. You can create and pass in your own remembered instance to observe Interactions and customize the appearance / behavior of this button in different states.