SwipeActionItem

fun SwipeActionItem(icon: Painter, label: String, onClick: () -> Unit, backgroundColor: Color, contentColor: Color, modifier: Modifier = Modifier)

A single swipe action button displayed behind a channel list item.

Parameters

icon

The icon to display.

label

Accessibility label used as the icon's content description.

onClick

Called when this action is tapped.

backgroundColor

The background color of this action.

contentColor

The color for the icon and label.

modifier

Modifier for styling.


fun SwipeActionItem(icon: Painter, label: String, onClick: () -> Unit, style: SwipeActionStyle, modifier: Modifier = Modifier)

A single swipe action button using SwipeActionStyle for slot-based coloring.

Parameters

icon

The icon to display.

label

Accessibility label used as the icon's content description.

onClick

Called when this action is tapped.

style

The visual style determining background and content colors.

modifier

Modifier for styling.