DefaultStylishConnectedCardItem

fun DefaultStylishConnectedCardItem(item: StylishConnectedCardItem, modifier: Modifier, shape: Shape, outlineEdges: ConnectedEdges, outlineCorners: ConnectedCorners, containerColor: Color? = null, contentColor: Color? = null, disabledContainerColor: Color = MaterialTheme.colorScheme.surfaceVariant, disabledContentColor: Color = MaterialTheme.colorScheme.onSurfaceVariant, titleStyle: TextStyle = MaterialTheme.typography.titleLarge, supportingTextStyle: TextStyle = MaterialTheme.typography.bodySmall, titleMaxLines: Int = 1, titleOverflow: TextOverflow = TextOverflow.Ellipsis, supportingTextMaxLines: Int = 1, supportingTextOverflow: TextOverflow = TextOverflow.Ellipsis, minHeight: Dp = DefaultStylishDimensions.cardMinHeight, horizontalPadding: Dp = DefaultStylishDimensions.controlPadding, verticalPadding: Dp = DefaultStylishDimensions.controlVerticalPadding, contentSpacing: Dp = StylishTheme.dimensions.itemSpacing, titleSpacing: Dp = StylishTheme.dimensions.inlineSpacing)

The default card renderer used by connected-card layouts when no custom StylishConnectedCardItemContent is supplied.

This is the Finish-layer rendering: it delegates to the StylishConnectedCard atom, forwarding all connection geometry (shape, outline edges, outline corners) and item data including title, supporting text, click/long-click actions, enabled state, and leading/trailing slot content, dressed in the Stylish look.

Parameters

item

The StylishConnectedCardItem data for the card being rendered.

modifier

A modifier carrying layout constraints from the parent layout. Applied to the StylishConnectedCard 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.

containerColor

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

contentColor

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

disabledContainerColor

Background color used when StylishConnectedCardItem.enabled is false.

disabledContentColor

Content color used when StylishConnectedCardItem.enabled is false.

titleStyle

Text style for the card title.

supportingTextStyle

Text style for the card supporting text.

titleMaxLines

Maximum lines for the card title.

titleOverflow

Overflow strategy for the card title.

supportingTextMaxLines

Maximum lines for the card supporting text.

supportingTextOverflow

Overflow strategy for the card supporting text.

minHeight

Minimum height of the card body. Defaults to DefaultStylishDimensions.cardMinHeight (77 dp).

horizontalPadding

Horizontal padding inside the card. Defaults to DefaultStylishDimensions.controlPadding (16 dp).

verticalPadding

Vertical padding inside the card. Defaults to DefaultStylishDimensions.controlVerticalPadding (12 dp).

contentSpacing

Horizontal gap between slots inside the card. Defaults to StylishTheme.dimensions.itemSpacing (8 dp).

titleSpacing

Vertical gap between title and supporting text. Defaults to StylishTheme.dimensions.inlineSpacing (4 dp).

See also