KPRadioButton

fun KPRadioButton(selected: Boolean, containerType: RadioButtonContainerType, size: RadioButtonSize, onClick: () -> Unit?, modifier: Modifier = Modifier, enabled: Boolean = true, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, colors: RadioButtonColors = KPRadioButtonDefaults.colors(), position: Alignment.Vertical = Alignment.CenterVertically)

Composable function representing a RadioButton with customizable appearance and behavior tailored for the com.trendyol.theme.KPDesign theme.

Parameters

selected

Indicates whether the RadioButton is selected or not.

containerType

The type of container for the RadioButton, which determines its appearance and content.

size

The size configuration for the RadioButton, defining dimensions such as button size, dot size, etc.

onClick

Callback invoked when the RadioButton is clicked. If null, the RadioButton is not clickable.

modifier

Optional Modifier that can be applied to the RadioButton.

enabled

Indicates whether the RadioButton is enabled for user interaction.

interactionSource

MutableInteractionSource representing the source of user interactions.

colors

RadioButtonColors defining the colors used for rendering the RadioButton.

position

Alignment representing the vertical alignment of the RadioButton within its container.