Package-level declarations

Page-level messages: JengaBanner in a tone, and JengaInfoBar, a button-shaped bar that says why no action is available.

Types

Link copied to clipboard
class JengaBannerColors(val container: Color, val content: Color, val icon: Color)

Resolved colors for a JengaBanner. Override via JengaBannerDefaults.colors.

Link copied to clipboard

Defaults and token mappings for JengaBanner.

Link copied to clipboard

Semantic tone of a JengaBanner.

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

Resolved colors for a JengaInfoBar. Override via JengaInfoBarDefaults.colors.

Link copied to clipboard

Defaults for JengaInfoBar. Each one follows the theme's JengaInfoBarStyle.

Link copied to clipboard
class JengaInfoBarStyle(val shape: Shape? = null, val minHeight: Dp? = null, val contentPadding: PaddingValues? = null, val textStyle: TextStyle? = null, val colors: JengaInfoBarColors? = null)

Theme-wide style for every JengaInfoBar, set through io.github.joelkanyi.jenga.theme.JengaComponentStyles.infoBar. A null value keeps Jenga's default (shape and height follow the theme's medium button); arguments passed to a call still win.

Functions

Link copied to clipboard
fun JengaBanner(message: String, modifier: Modifier = Modifier, tone: JengaBannerTone = JengaBannerTone.Info, title: String? = null, action: @Composable () -> Unit? = null, colors: JengaBannerColors = JengaBannerDefaults.colors(tone))

An inline banner / alert: a tinted, full-width message with a leading status icon, optional title, and optional trailing action.

Link copied to clipboard
fun JengaInfoBar(text: String, modifier: Modifier = Modifier, leadingIcon: @Composable () -> Unit? = null, shape: Shape = JengaInfoBarDefaults.shape, minHeight: Dp = JengaInfoBarDefaults.minHeight, contentPadding: PaddingValues = JengaInfoBarDefaults.contentPadding, textStyle: TextStyle = JengaInfoBarDefaults.textStyle, colors: JengaInfoBarColors = JengaInfoBarDefaults.colors())

A button-shaped, non-interactive bar that states why no action is available (e.g. "View only" or "Closed"). Use it where a primary button would otherwise sit. It is read as text, not as a button.