KPBottomSheetCheckboxItem

fun KPBottomSheetCheckboxItem(checked: Boolean, text: String, onCheckedChange: (Boolean) -> Unit, modifier: Modifier = Modifier, isIconVisible: Boolean = false, textStyle: TextStyle = KPDesign.typography.titleMediumColorOnSurfaceVariant3, iconSize: IconSize = KPIconSize.XSmall, description: String = "", descriptionTextStyle: TextStyle = KPDesign.typography.body1ColorOnSurfaceVariant1)

A composable function that creates a checkbox item with a text label and optional description for a bottom sheet.

Parameters

checked

A boolean value that determines whether the checkbox is checked.

text

The text label to be displayed next to the checkbox.

onCheckedChange

A lambda function to be invoked when the checked state changes.

modifier

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

isIconVisible

A boolean value indicating whether an icon should be displayed next to the text. Default is false.

textStyle

A TextStyle for customizing the appearance of the text label. Default is KPDesign.typography.titleMediumColorOnSurfaceVariant3.

iconSize

An IconSize for customizing the size of the info icon. Default is KPIconSize.XSmall.

description

An optional description text to be displayed below the label. Default is an empty string.

descriptionTextStyle

A TextStyle for customizing the appearance of the description text. Default is KPDesign.typography.body1ColorOnSurfaceVariant1.