JengaExpandableRow

fun JengaExpandableRow(expanded: Boolean, onExpandedChange: (Boolean) -> Unit, header: @Composable RowScope.() -> Unit, modifier: Modifier = Modifier, showChevron: Boolean = true, chevronContentDescription: String? = null, shape: Shape = JengaExpandableRowDefaults.shape, colors: JengaExpandableRowColors = JengaExpandableRowDefaults.colors(), headerPadding: PaddingValues = JengaExpandableRowDefaults.headerPadding, contentPadding: PaddingValues = JengaExpandableRowDefaults.contentPadding, content: @Composable ColumnScope.() -> Unit)(source)

An outlined card whose header row toggles an expandable content body: a generic accordion (day/agenda cards, FAQ rows, grouped settings). The header is laid out in a RowScope; the block appends an optional rotating chevron. Domain-neutral and token-driven. With transparent colors and a rectangle shape it becomes a plain row for use inside another card.

Parameters

expanded

whether the content is currently shown.

onExpandedChange

called with the requested new state when the header is tapped.

header

the header content, laid out before the chevron.

modifier

the Modifier for the card.

showChevron

whether to append a chevron that rotates when expanded.

chevronContentDescription

accessibility label for the chevron.

shape

the card shape.

colors

the color set; defaults to JengaExpandableRowDefaults.colors.

headerPadding

padding around the header row.

contentPadding

padding around the expanded body.

content

the expandable body, shown when expanded.