KPCheckbox

fun KPCheckbox(style: CheckboxStyle, size: CheckboxSize, containerType: CheckboxContainerType, checked: Boolean, onCheckedChange: (Boolean) -> Unit?, modifier: Modifier = Modifier, enabled: Boolean = true, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, position: Alignment.Vertical = Alignment.CenterVertically)

This composable function representing a custom checkbox component designed for the Trendyol.

Parameters

style

The style configuration for the checkbox, defining its appearance. See KPCheckboxStyle.Primary and KPCheckboxStyle.Secondary

size

The size configuration for the checkbox, determining its dimensions. See KPCheckboxSize.Medium, KPCheckboxSize.Small and KPCheckboxSize.XSmall

containerType

The type of container in which the checkbox is placed. See CheckboxContainerType.Text, CheckboxContainerType.Content and CheckboxContainerType.None

checked

The current checked state of the checkbox.

onCheckedChange

A callback function invoked when the checked state of the checkbox changes. It receives a Boolean parameter indicating the new checked state.

modifier

Additional modifier for the layout of the checkbox.

enabled

Whether the checkbox is interactive and can be checked/unchecked by the user.

interactionSource

The source of interactions for the checkbox, used for tracking user interactions.

position

The vertical alignment of the checkbox within its container.