API reference

PrimaryIconButton Function

A primary icon button without text label.

Signature

fun PrimaryIconButton(
    icon: () -> Unit,
    onClick: () -> Unit,
    modifier: Modifier = Modifier,
    colors: PrimaryButtonColors = PrimaryButtonDefaults.colors(),
    isEnabled: Boolean = true,
)

Parameters

icon: () -> Unit The icon to display on the button.
onClick: () -> Unit The callback to be invoked when the button is clicked.
modifier: Modifier Modifier to be applied to the button.
colors: PrimaryButtonColors The colors to use for different states of the button.
isEnabled: Boolean Whether the button is enabled or not. Defaults to true.