SquareIconButton

fun SquareIconButton(enabled: Boolean = true, icon: @Composable () -> Unit, modifier: Modifier = Modifier, onClick: () -> Unit)

DHIS2 square icon button with generic icon slot. Wraps Material 3 ElevatedButton.

Parameters

enabled

: Controls the enabled state of the button. When false, this button will not be clickable and will appear disabled to accessibility services.

icon

: The button icon content.

onClick

: Will be called when the user clicks the button.

modifier

: optional modifier.