SourceBaseIconButton

fun SourceBaseIconButton(size: SourceButton.Size, buttonColours: ButtonColours, onClick: () -> Unit, modifier: Modifier = Modifier, enabled: Boolean = true, disabledButtonColours: ButtonColours? = null, icon: @Composable (Modifier) -> Unit = {})

Source icon-only button. This variant allows providing the icon as a composable slot.

Parameters

size

The size of the button. Reflects the prominence of the action.

buttonColours

The colours to apply to the button.

onClick

The action to perform when the button is clicked.

modifier

The modifier to apply to the button.

enabled

Whether the button is enabled and can be interacted with.

disabledButtonColours

Optional colours to apply to the button when it is disabled. If not provided, the buttonColours will be used with reduced opacity.

icon

The icon to display in the button. Use a material Icon component to display the icon.