DefaultStylishConnectedListItem

fun DefaultStylishConnectedListItem(item: StylishConnectedListItem, modifier: Modifier, shape: Shape, outlineEdges: ConnectedEdges, outlineCorners: ConnectedCorners, headlineMaxLines: Int, headlineOverflow: TextOverflow, headlineStyle: TextStyle, supportingTextMaxLines: Int, supportingTextOverflow: TextOverflow, supportingTextStyle: TextStyle, containerColor: Color?, contentColor: Color?, horizontalPadding: Dp, verticalPadding: Dp, contentSpacing: Dp = StylishTheme.dimensions.itemSpacing, interactionSource: MutableInteractionSource? = null)

The default list-item renderer used by connected-list layouts when no custom ConnectedListItemContent is supplied.

This is the Finish-layer rendering: it dresses a row in the Stylish look — grouped-container surface, interactive elevation, a hairline connected outline — and wires tap/long-press interaction with haptic feedback. Items whose StylishConnectedListItem.onClick and StylishConnectedListItem.onLongClick are both null, or whose StylishConnectedListItem.enabled is false, are rendered without elevation and do not respond to interaction. Actionable rows are assigned Role.Button semantics; disabled rows are marked with the disabled() semantic flag.

Parameters

item

The StylishConnectedListItem data for the row.

modifier

A modifier carrying layout constraints from the parent layout. Applied to the Surface root.

shape

The connected Shape for this item's position in the group.

outlineEdges

The ConnectedEdges indicating which sides draw outline borders.

outlineCorners

The ConnectedCorners indicating which corners are rounded.

headlineMaxLines

Maximum lines for the headline.

headlineOverflow

Overflow strategy for the headline.

headlineStyle

Text style for the headline.

supportingTextMaxLines

Maximum lines for supporting text and lines.

supportingTextOverflow

Overflow strategy for supporting text.

supportingTextStyle

Text style for supporting text and lines.

containerColor

Background color, or null for the grouped-container default.

contentColor

Content color, or null for an enabled/disabled-aware default.

horizontalPadding

Horizontal padding inside the row.

verticalPadding

Vertical padding inside the row.

contentSpacing

Horizontal gap between the leading slot, text block, and trailing slot. Defaults to StylishTheme.dimensions.itemSpacing (8 dp).

interactionSource

The MutableInteractionSource used to observe press/hover/focus interactions for the state layer. When null, an internal one is remembered per item.

Focus: actionable rows draw the web "focus-visible ring" (Modifier.stylishFocusRing) around shape while the row holds keyboard or focus-ring focus.

See also