Package-level declarations

JengaStatusPill: a status label with a dot or icon.

Types

Link copied to clipboard
class JengaStatusPillColors(val container: Color, val content: Color, val accent: Color)

Resolved colors for a JengaStatusPill.

Link copied to clipboard

Defaults for JengaStatusPill. The composable members follow the theme's JengaStatusPillStyle; the constants are Jenga's built-in values, and JengaStatusPill resolves the theme's values over them.

Link copied to clipboard
class JengaStatusPillStyle(val indicatorSize: Dp? = null, val minHeight: Dp? = null, val contentPadding: PaddingValues? = null, val textStyle: TextStyle? = null)

Theme-wide style for every JengaStatusPill, set through io.github.joelkanyi.jenga.theme.JengaComponentStyles.statusPill. A null value keeps Jenga's default; arguments passed to a call still win.

Functions

Link copied to clipboard
fun JengaStatusPill(label: String, modifier: Modifier = Modifier, tone: JengaBadgeTone = JengaBadgeTone.Neutral, loading: Boolean = false, onClick: () -> Unit? = null, colors: JengaStatusPillColors = JengaStatusPillDefaults.colors(tone), showDot: Boolean = true, indicatorSize: Dp = JengaTheme.components.statusPill?.indicatorSize ?: JengaStatusPillDefaults.IndicatorSize, minHeight: Dp = JengaTheme.components.statusPill?.minHeight ?: JengaStatusPillDefaults.MinHeight, contentPadding: PaddingValues = JengaStatusPillDefaults.contentPadding, textStyle: TextStyle = JengaStatusPillDefaults.textStyle, leadingIcon: @Composable () -> Unit? = null)

A compact status pill: a leading dot (or a spinner while loading) plus a short label, tinted by tone. Use it for live, glanceable state (connectivity, sync, gate health) anywhere a io.github.joelkanyi.jenga.component.badge.JengaBadge is too static. Optionally onClickable to open details.