KPBottomSheetRadioItem

fun KPBottomSheetRadioItem(selected: Boolean, text: String, onClick: () -> 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 radio button item with a text label and optional description for a bottom sheet.

Parameters

selected

A boolean value that determines whether the radio button is selected.

text

The text label to be displayed next to the radio button.

onClick

A lambda function to be invoked when the radio button is clicked.

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.