JengaCardFooter

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.

leadingIcon

optional icon before the text; inherits the content color.

contentPadding

padding inside the footer.

textStyle

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",
        )
    },
)