Source Base Icon Button
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.
button Colours
The colours to apply to the button.
on Click
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.
disabled Button Colours
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.