Connected Card Item Content
The rendering contract for a single item within a headless connected-card layout (Structure layer).
A connected-card layout (ConnectedCardRow, ConnectedCardColumn, ConnectedCardGrid) 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 decisions — surface, colors, elevation, content — while the layout owns geometry and arrangement. This separation is what makes the layout headless: it can drive any visual treatment (the Stylish Finish default DefaultStylishConnectedCardItem, or a fully custom skin) without changing structure.
Parameters
The StylishConnectedCardItem data for the card being rendered.
Layout constraints (e.g. weight, fill-max-height) determined by the parent layout. Must be applied to the item's root composable.
The connected Shape with only the appropriate outer corners rounded for this item's position in the group.
The ConnectedEdges indicating which sides of this card should draw outline borders to connect with adjacent siblings.
The ConnectedCorners indicating which corners of this card are rounded.