KPSliderContent
fun <Item> KPSliderContent(itemList: PersistentList<Item>, itemContent: @Composable (index: Int, item: Item) -> Unit, modifier: Modifier = Modifier, outerPadding: PaddingValues = PaddingValues(horizontal = 16.dp, vertical = 12.dp), dividerContent: @Composable (index: Int, item: Item) -> Unit = { _, _ ->
Spacer(modifier = Modifier.width(12.dp))
})
A composable function that creates a lazy row with a slider of items and optional divider content.
Parameters
Item
The type of items in the list.
itemList
A PersistentList
of items to be displayed in the slider.
itemContent
A composable lambda to define the content for each item in the slider.
modifier
A Modifier
for styling and layout customization. Default is Modifier
.
outerPadding
A PaddingValues
object to set the padding around the slider content. Start and End paddings will work as item padding in order to make items disappear when user scrolls to enhance UX. Default is PaddingValues(horizontal = 16.dp, vertical = 12.dp)
.
dividerContent
A composable lambda to define the content for the divider between items. Default is a Spacer
with a width of 12.dp.