ComposePagerSnapHelper

fun ComposePagerSnapHelper(width: Dp = 0.dp, content: @Composable (LazyListState) -> Unit)

ComposePagerSnapHelper is a pager style snapping in horizontal orientation. Provide the width used in the item in horizontally scrolling list, and ComposePagerSnapHelper will calculate when to snap to the target view.

Parameters

width

width of the item in horizontally scrolling list.

content

a block which describes the content. Inside this block, you will have access to LazyListState.

Dp the width of the item returned in dp.