Square Icon Button
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.
on Click
: Will be called when the user clicks the button.
modifier
: optional modifier.