When to use it
Use for persistent inline notices with optional action and dismissal. Prefer Alert for compact semantic content without banner structure.
Present a structured semantic notice with optional actions and dismissal.
Native example
Use for persistent inline notices with optional action and dismissal. Prefer Alert for compact semantic content without banner structure.
LumenBanner(
title = "Workspace assigned automatically",
description = "Moved the app to Documentation.",
variant = LumenBannerVariant.Accent,
onDismiss = ::dismissAssignment
)Reference
The primary shared and platform-specific options exposed by LumenBanner.
| API | Values or type | Default | Description |
|---|---|---|---|
| title | String | Required | Names the notice. |
| description | String? | null | Adds supporting detail. |
| variant | default · accent · destructive · success · warning | default | Selects semantic presentation. |
| onDismiss | (() -> Void)? | null | Adds a labeled dismiss action. |
| actions | (@Composable () -> Unit)? | null | Provides optional inline actions. |
Native behavior
Use for persistent inline notices with optional action and dismissal. Prefer Alert for compact semantic content without banner structure.
A banner is inline content, not a live announcement. The application decides whether newly inserted content needs a platform announcement.
Shared component