Jenga List Item
A single row in a list: a headline, optional supporting line, and optional leading/trailing slots (icons, avatars, controls).
Parameters
the primary text.
the Modifier for this row.
optional secondary text below the headline.
optional slot below the headline (and below supporting when both are given), for rich supporting content such as badges or a status line. Inherits the supporting color.
optional start slot (inherits the leading/trailing color).
optional end slot (inherits the leading/trailing color).
optional click handler; makes the row focusable with a ripple.
the maximum lines for headline before it is truncated.
the maximum lines for supporting before it is truncated.
the minimum row height; defaults to the theme's JengaListItemStyle.minHeight, else JengaListItemDefaults.MinHeight.
inner padding around the row content.
the headline text style.
the supporting text style.
the gap between the leading content, the text and the trailing content.
how the leading content, the text and the trailing content align in a tall row.
the color set; defaults to JengaListItemDefaults.colors.
Samples
JengaListItem(
headline = "Gate A",
supporting = "Main entrance",
trailingContent = {
JengaIcon(
imageVector = JengaIcons.ChevronRight,
contentDescription = null,
)
},
onClick = { },
)A JengaListItem whose headline is styled text (e.g. a monospaced id beside plain words).
Parameters
the primary text, with styled spans.
the Modifier for this row.
optional secondary text below the headline.
optional slot below the headline (and below supporting when both are given), for rich supporting content such as badges or a status line. Inherits the supporting color.
optional start slot (inherits the leading/trailing color).
optional end slot (inherits the leading/trailing color).
optional click handler; makes the row focusable with a ripple.
the maximum lines for headline before it is truncated.
the maximum lines for supporting before it is truncated.
the minimum row height; defaults to the theme's JengaListItemStyle.minHeight, else JengaListItemDefaults.MinHeight.
inner padding around the row content.
the supporting text style.
the gap between the leading content, the text and the trailing content.
how the leading content, the text and the trailing content align in a tall row.
the color set; defaults to JengaListItemDefaults.colors.