SegmentedItemContainer

fun SegmentedItemContainer(modifier: Modifier = Modifier, showChevron: Boolean = false, shape: Shape = LocalSegmentedItemShape.current ?: RoundedCornerShape(SEGMENT_INNER_CORNER), selected: Boolean = false, content: @Composable () -> Unit)

A generic container that applies the standard segmented list item styling (rounded corners, container surface background, width, and padding).

Use this if you need to place a custom composable inside a SegmentedItemList or LazySegmentedItemList.

Parameters

modifier
showChevron

whether to show a right chevron icon on the right side.

shape

the Shape used to clip the container. Defaults to 4.dp rounded corners (which when placed inside a SegmentedItemList combines with the list's outer 16.dp clip to form the outer/inner segmented corners), or the per-item shape when inside a segmentedItemList.

selected

whether to draw a 1.dp selection border around the container.

content

the custom composable to display inside the standard item styling.


fun SegmentedItemContainer(index: Int, count: Int, modifier: Modifier = Modifier, showChevron: Boolean = false, selected: Boolean = false, content: @Composable () -> Unit)

A generic container that applies the standard segmented list item styling for an item at index out of count items.

Parameters

index

the zero-based index of the item in the segmented group.

count

the total number of items in the segmented group.

modifier
showChevron

whether to show a right chevron icon on the right side.

selected

whether to draw a 1.dp selection border around the container.

content

the custom composable to display inside the standard item styling.