KPBottomSheetListContent
fun <Item> KPBottomSheetListContent(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 vertical list 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 list.
itemContent
A composable lambda to define the content for each item in the list.
modifier
A Modifier
for styling and layout customization. Default is Modifier
.
header
A composable lambda for customizing the header content. Default is a KPBottomSheetHeader
with the provided title and close icon click action.