Connected Chip Item Content
The rendering contract for a single item within a headless connected-chip layout (Structure layer).
A connected-chip layout (ConnectedChipRow, ConnectedChipColumn, ConnectedChipGrid) 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, selection colors, animation, semantics, click handling — while the layout owns geometry and arrangement. This separation is what makes the layout headless.
Parameters
The StylishConnectedChipItem data for the chip being rendered.
Layout constraints determined by the parent layout (e.g. weight when fillWidth is used). 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 chip should draw outline borders to connect with adjacent siblings.
The ConnectedCorners indicating which corners of this chip are rounded.