ActionableInlineNotification

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

Inline notification - Actionable

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.

Actionable inline notifications have a ghost button action that is adjacent to the title and body content. On mobile screens the action button wraps under the body content. This button should allow users to take further action on the notification.

(From Notification documentation)

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.