KPBottomSheetSingleSelectItem

fun KPBottomSheetSingleSelectItem(selected: Boolean, text: String, onClick: () -> Unit, modifier: Modifier = Modifier, isIconVisible: Boolean = true, textStyle: TextStyle = KPDesign.typography.titleMediumColorOnSurfaceVariant3, helperText: String = "", helperTextStyle: TextStyle = KPDesign.typography.body1MediumColorWarning, description: String = "", descriptionTextStyle: TextStyle = KPDesign.typography.body1ColorOnSurfaceVariant1)

A composable function that creates a single-select item with a text label, optional description, helper text, and icon for a bottom sheet.

Parameters

selected

A boolean value that determines whether the item is selected.

text

The text label to be displayed for the item.

onClick

A lambda function to be invoked when the item is clicked.

modifier

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

isIconVisible

A boolean value that determines whether the icon is visible. Default is true.

textStyle

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

helperText

An optional helper text to be displayed next to the item. Default is an empty string.

helperTextStyle

A TextStyle for customizing the appearance of the helper text. Default is KPDesign.typography.body2MediumColorWarning.

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.