SourceAlertBanner

fun SourceAlertBanner(messageText: String, priority: SourceAlertBanner.Priority, onMessageClick: () -> Unit, onDismiss: () -> Unit, modifier: Modifier = Modifier)

A banner component that displays an alert message with styling based on provided priority.

Parameters

messageText

The text to be displayed in the banner.

priority

The type of message to be displayed (Neutral, Informative, Error).

onMessageClick

A callback to be invoked when the banner is clicked.

onDismiss

A callback to be invoked when the cancel icon is clicked.

modifier

The modifier to be applied to the banner.

See also


fun SourceAlertBanner(messageText: AnnotatedString, priority: SourceAlertBanner.Priority, onMessageClick: () -> Unit, onDismiss: () -> Unit, modifier: Modifier = Modifier)

A composable function that displays an alert banner with optional clickable links.

Parameters

messageText

The text to be displayed in the banner having link in it.

priority

The type of message to be displayed (Neutral, Informative, Error).

onMessageClick

A callback to be invoked when the banner is clicked.

onDismiss

A callback to be invoked when the cancel icon is clicked.

modifier

The modifier to be applied to the banner.

See also