ToastNotification
fun ToastNotification(title: String, body: String, status: NotificationStatus, onClose: () -> Unit, modifier: Modifier = Modifier, highContrast: Boolean = false, timestamp: String = "")
Toast notification
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.
status
The status of the notification, which determines its color and icon used.
onClose
Callback invoked when the close icon is clicked.
modifier
The modifier to apply to the component.
highContrast
Whether to use high contrast colors.
timestamp
An optional timestamp text below the body used showing the time the notification was sent.