Icon Button
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
on Click
The callback when the IconButton is clicked.
modifier
The modifier to be applied to the IconButton
enabled
Whether the IconButton is enabled.
hold Down State
Used to determine whether it is in the pressed state.
background Color
The background color of of the IconButton.
corner Radius
The corner radius of of the IconButton.
min Height
The minimum height of of the IconButton.
min Width
The minimum width of the IconButton.
content
The content of this icon button, typically an Icon.