Jenga Card Footer
fun JengaCardFooter(text: String, modifier: Modifier = Modifier, leadingIcon: @Composable () -> Unit? = null, contentPadding: PaddingValues = JengaCardFooterDefaults.contentPadding, textStyle: TextStyle = JengaCardFooterDefaults.textStyle, colors: JengaCardFooterColors = JengaCardFooterDefaults.colors())(source)
A quiet footer row for the bottom of a JengaCard: a sunk strip with an optional icon and a short line of text (e.g. "Last updated 2h ago"). Place it last inside a card whose contentPadding is zero so it spans the full width.
Parameters
text
the footer text.
modifier
the Modifier for this footer.
leading Icon
optional icon before the text; inherits the content color.
content Padding
padding inside the footer.
text Style
the text style.
colors
the color set; defaults to JengaCardFooterDefaults.colors.
Samples
JengaCard(
contentPadding = PaddingValues(),
content = {
JengaText(
text = "Battery replacement",
modifier = Modifier.padding(
all = JengaTheme.spacing.lg,
),
)
JengaCardFooter(
text = "Waiting for parts since Monday",
)
},
)Content copied to clipboard