ModalHeaderAction

constructor(@DrawableRes iconResource: Int, contentDescription: String? = null, action: () -> Unit)

Parameters

iconResource

Resources object to query the image file from.

contentDescription

text used by accessibility services to describe what this icon represents. This should always be provided unless this icon is used for decorative purposes, and does not represent a meaningful action that a user can take. This text should be localized, such as by using androidx.compose.ui.res.stringResource or similar.

action

Will be called when the user clicks the button.