Jenga Card
A surface that groups related content.
Parameters
the Modifier for this card.
the visual style; see JengaCardVariant.
optional click handler; when set, the card becomes focusable and clickable with a ripple.
when false, the card is drawn at disabledAlpha, onClick is ignored and the card is reported as disabled to accessibility services.
whether the card is the chosen one; draws a brand border of JengaCardDefaults.SelectedBorderWidth and reports the card as selected to accessibility services.
the card shape; defaults to JengaCardDefaults.shape.
the color set; defaults to JengaCardDefaults.colors for variant and selected.
resting shadow depth; defaults to JengaCardDefaults.elevation.
inner padding around content; defaults to the theme's JengaCardStyle, else JengaCardDefaults.contentPadding.
width of the border, drawn inside the card edge; defaults to JengaCardDefaults.SelectedBorderWidth when selected, else the theme's JengaCardStyle, else JengaCardDefaults.BorderWidth.
opacity of the whole card when enabled is false; defaults to the theme's JengaCardStyle, else JengaCardDefaults.DisabledAlpha.
the card body, laid out in a ColumnScope.
Samples
JengaCard(
content = {
JengaText(
text = "Gate A · Main entrance",
)
},
)