KPBottomSheetHeader

fun KPBottomSheetHeader(title: String, onCloseIconClick: () -> Unit, modifier: Modifier = Modifier, onBackIconClick: () -> Unit = {}, isCloseIconVisible: Boolean = true, isBackIconVisible: Boolean = false, verticalPadding: PaddingValues = PaddingValues(vertical = 16.dp))

A composable function that creates a customizable header for a bottom sheet.

Parameters

title

The title to be displayed in the header.

onCloseIconClick

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

modifier

A Modifier for styling and layout customization. Default is Modifier.

onBackIconClick

A lambda function to be invoked when the back icon is clicked. Default is an empty lambda.

isCloseIconVisible

A boolean to determine the visibility of the close icon. Default is true.

isBackIconVisible

A boolean to determine the visibility of the back icon. Default is false.

verticalPadding

A PaddingValues object to set the vertical padding of the header. Default is PaddingValues(vertical = 12.dp).