IconButton

fun IconButton(style: IconButtonStyle = IconButtonStyle.STANDARD, enabled: Boolean = true, icon: @Composable () -> Unit, modifier: Modifier = Modifier, onClick: () -> Unit)

DHIS2 icon button with generic icon slot.

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.

style

: controls the button style, will be Standard by default, but can be Tonal, Filled, or Outlined too.

modifier

: optional modifier.