ConnectedListItemContent

typealias ConnectedListItemContent = @Composable (item: StylishConnectedListItem, modifier: Modifier, shape: Shape, outlineEdges: ConnectedEdges, outlineCorners: ConnectedCorners) -> Unit

The rendering contract for a single item within a headless connected-list layout (Structure layer).

A connected-list layout (ConnectedListItemRow, ConnectedListItemColumn, ConnectedListItemGrid) computes the outline edges, corners, and shape for each position in the group, then invokes this lambda to render the item. The lambda owns all visual and interactive decisions — surface, colors, elevation, click/long-click handling, semantics — while the layout owns geometry and arrangement. This separation is what makes the layout headless.

Parameters

item

The StylishConnectedListItem data for the row being rendered.

modifier

Layout constraints determined by the parent layout (e.g. weight, fill-max-height). Must be applied to the item's root composable.

shape

The connected Shape with only the appropriate outer corners rounded for this item's position in the group.

outlineEdges

The ConnectedEdges indicating which sides of this row should draw outline borders to connect with adjacent siblings.

outlineCorners

The ConnectedCorners indicating which corners of this row are rounded.

See also