KPBottomSheetSliderContent

fun <Item> KPBottomSheetSliderContent(title: String, onCloseIconClick: () -> Unit, itemList: PersistentList<Item>, itemContent: @Composable (index: Int, item: Item) -> Unit, modifier: Modifier = Modifier, header: @Composable () -> Unit = { KPBottomSheetHeader(title = title, onCloseIconClick = onCloseIconClick) })

A composable function that creates a bottom sheet content layout with a horizontal slider of items and a customizable header.

Parameters

Item

The type of items in the list.

title

The title to be displayed in the header.

onCloseIconClick

A lambda function to be invoked when the close icon in the header is clicked.

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.

header

A composable lambda for customizing the header content. Default is a BottomSheetHeader with the provided title and close icon click action.