KPBottomSheetImageContent
fun KPBottomSheetImageContent(title: String, onCloseIconClick: () -> Unit, model: Any?, modifier: Modifier = Modifier, header: @Composable () -> Unit = {
KPBottomSheetHeader(title = title, onCloseIconClick = onCloseIconClick)
}, outerPadding: PaddingValues = PaddingValues(horizontal = 16.dp, vertical = 12.dp))
A composable function that creates a bottom sheet content layout with an image and a customizable header.
Parameters
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.
model
The data model for the image to be displayed.
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.
outerPadding
A PaddingValues
object to set the padding around the image content. Default is PaddingValues(horizontal = 16.dp, vertical = 12.dp)
.