InlineNotification

fun InlineNotification(title: String, body: String, status: NotificationStatus, onClose: () -> Unit, modifier: Modifier = Modifier, highContrast: Boolean = false)

Inline notification

Inline notifications show up in task flows, to notify users of the status of an action or system. They usually appear at the top of the primary content area or close to the item needing attention.

(From Notification documentation)

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

The callback to be called when the notification is closed.

modifier

The modifier to apply to the component.

highContrast

Whether to use high contrast colors.