OudsInlineAlert

fun OudsInlineAlert(label: String, modifier: Modifier = Modifier, status: OudsInlineAlertStatus = OudsInlineAlertDefaults.Status)

Inline alert is a lightweight UI element, placed in the content flow, that displays information, system feedback, status changes throughout short, prominent, persistent and non actionable communication. Inline alert includes functional icon and semantic colour, and does not include a close button and/or action link. Inline alert does not disappear and remains visible.

Design

Guidelinesunified-design-system.orange.com
Version1.0.0

Parameters

label

Label displayed in the inline alert. Main message that should be short, clear, and readable at a glance.

modifier

Modifier applied to the inline alert.

status

The status of the inline alert. Its background color and its icon color are based on this status. There are two types of statuses:

Samples

OudsInlineAlert(
    label = "Label",
    status = OudsInlineAlertStatus.Accent(OudsAlertIcon(imageVector = Icons.Filled.FavoriteBorder))
)
OudsInlineAlert(
    label = "Label",
    status = OudsInlineAlertStatus.Positive
)