ActionableToastNotification
fun ActionableToastNotification(title: String, body: String, actionLabel: String, status: NotificationStatus, onAction: () -> Unit, onClose: () -> Unit, modifier: Modifier = Modifier, highContrast: Boolean = false)
Toast notification - Actionable
Toast notifications are non-modal, time-based window elements used to display short messages; they usually appear at the top of the screen and disappear after a few seconds.
Parameters
title
The title of the notification.
body
The body of the notification.
actionLabel
The label of the action button.
status
The status of the notification, which determines its color and icon used.
onAction
Callback invoked when the action button is clicked.
onClose
Callback invoked when the close icon is clicked.
modifier
The modifier to apply to the component.
highContrast
Whether to use high contrast colors.