JengaVerdictBar

fun JengaVerdictBar(amount: String, modifier: Modifier = Modifier, amountSuffix: String? = null, tone: JengaVerdictTone = JengaVerdictTone.Positive, label: String? = null, progress: Float? = null, sublines: JengaVerdictSublines? = null, action: JengaAction? = null, colors: JengaVerdictBarColors = JengaVerdictBarDefaults.colors(tone), shape: Shape = JengaVerdictBarDefaults.shape, contentPadding: PaddingValues = JengaVerdictBarDefaults.contentPadding, trackHeight: Dp = JengaVerdictBarDefaults.TrackHeight, amountStyle: TextStyle = JengaVerdictBarDefaults.amountStyle, amountSuffixStyle: TextStyle = JengaVerdictBarDefaults.amountSuffixStyle)(source)

A full-width verdict banner: a tone-colored band with an optional label, a big amount (with optional amountSuffix), an optional progress bar, and an optional pair of honest sublines. A one-glance "where do I stand" summary (budget, goal, quota). Generic; numbers and copy are the caller's, color follows tone.

Parameters

amount

the headline value (e.g. "KES 1,190").

modifier

the Modifier for the banner.

amountSuffix

a small word after the amount (e.g. "left").

tone

the verdict color.

label

an optional eyebrow above the amount.

progress

an optional 0..1 progress fraction; null hides the bar.

sublines

the optional bottom start/end captions.

action

optional trailing header action (label plus handler).

colors

the color set; defaults to JengaVerdictBarDefaults.colors for tone.

shape

the banner shape.

contentPadding

padding inside the banner.

trackHeight

the progress bar height.

amountStyle

the amount text style.

amountSuffixStyle

the amountSuffix text style.