Jenga Banner
fun JengaBanner(message: String, modifier: Modifier = Modifier, tone: JengaBannerTone = JengaBannerTone.Info, title: String? = null, action: @Composable () -> Unit? = null, colors: JengaBannerColors = JengaBannerDefaults.colors(tone))(source)
An inline banner / alert: a tinted, full-width message with a leading status icon, optional title, and optional trailing action.
Parameters
message
the banner body text.
modifier
the Modifier for this banner.
tone
the semantic tone; see JengaBannerTone.
title
optional bold title above the message.
action
optional trailing action slot (e.g. a ghost io.github.joelkanyi.jenga.component.button.JengaButton).
colors
the color set; defaults to JengaBannerDefaults.colors for tone.
Samples
JengaBanner(
message = "Working offline, scans will sync later.",
tone = JengaBannerTone.Info,
)Content copied to clipboard