IconButton

fun IconButton(onClick: () -> Unit, modifier: Modifier = Modifier, enabled: Boolean = true, holdDownState: Boolean = false, backgroundColor: Color = Color.Unspecified, cornerRadius: Dp = IconButtonDefaults.CornerRadius, minHeight: Dp = IconButtonDefaults.MinHeight, minWidth: Dp = IconButtonDefaults.MinWidth, content: @Composable () -> Unit)

A IconButton component with Miuix style.

Icon buttons help people take supplementary actions with a single tap. They’re used when a compact button is required, such as in a toolbar or image list.

Parameters

onClick

The callback when the IconButton is clicked.

modifier

The modifier to be applied to the IconButton

enabled

Whether the IconButton is enabled.

holdDownState

Used to determine whether it is in the pressed state.

backgroundColor

The background color of of the IconButton.

cornerRadius

The corner radius of of the IconButton.

minHeight

The minimum height of of the IconButton.

minWidth

The minimum width of the IconButton.

content

The content of this icon button, typically an Icon.