API reference
API reference
Select your platform
No SDKs available
No versions available

PrimaryIconButton Function

Modifiers: final
A primary icon button without text label.

Signature

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

Parameters

icon: Function0
The icon to display on the button.
onClick: Function0
The callback to be invoked when the button is clicked.
modifier: Modifier
Modifier to be applied to the button.
The colors to use for different states of the button.
isEnabled: Boolean
Whether the button is enabled or not. Defaults to true.
Did you find this page helpful?