Package-level declarations

Organisms composed from blocks: JengaTicketRow, JengaStatCard, JengaSectionHeader.

Types

Link copied to clipboard

Defaults for JengaSectionHeader. titleStyle follows the theme's JengaSectionHeaderStyles; MinHeight and contentPadding are Jenga's built-in values, and JengaSectionHeader resolves the theme's per-style values over them.

Link copied to clipboard

Theme-wide styles for every JengaSectionHeader, one per JengaSectionHeaderStyle, set through io.github.joelkanyi.jenga.theme.JengaComponentStyles.sectionHeader. A null value keeps Jenga's default; arguments passed to a call still win.

Link copied to clipboard
class JengaSectionHeaderVariantStyle(val minHeight: Dp? = null, val contentPadding: PaddingValues? = null, val titleStyle: TextStyle? = null)

Theme-wide look for one JengaSectionHeaderStyle, part of JengaSectionHeaderStyles. A null value keeps Jenga's default.

Functions

Link copied to clipboard
fun JengaSectionHeader(title: String, modifier: Modifier = Modifier, subtitle: String? = null, actionLabel: String? = null, onActionClick: () -> Unit? = null, style: JengaSectionHeaderStyle = JengaSectionHeaderStyle.Title, trailingContent: @Composable () -> Unit? = null, titleStyle: TextStyle = JengaSectionHeaderDefaults.titleStyle(style), minHeight: Dp = JengaTheme.components.sectionHeader?.of(style)?.minHeight ?: JengaSectionHeaderDefaults.MinHeight, contentPadding: PaddingValues = JengaTheme.components.sectionHeader?.of(style)?.contentPadding ?: JengaSectionHeaderDefaults.contentPadding)

Pattern (organism), a section header: a title with an optional trailing text action and an optional trailing slot (e.g. a count or an icon action). Composed from JengaText + JengaButton.

Link copied to clipboard
fun JengaStatCard(label: String, value: String, modifier: Modifier = Modifier, trendLabel: String? = null, trendTone: JengaBadgeTone = JengaBadgeTone.Neutral, onClick: () -> Unit? = null)

Pattern (organism), a KPI / stat card: an eyebrow label, a large value, and an optional trend badge. Composed from JengaCard + JengaText + JengaBadge.

Link copied to clipboard
fun JengaTicketRow(attendeeName: String, detail: String, statusLabel: String, statusTone: JengaBadgeTone, modifier: Modifier = Modifier, onClick: () -> Unit? = null)

Pattern (organism), a ready-made attendee/ticket row composed from jenga blocks (JengaCard + JengaAvatar + JengaText + JengaBadge).