Jenga Checkbox
fun JengaCheckbox(checked: Boolean, onCheckedChange: (Boolean) -> Unit?, modifier: Modifier = Modifier, enabled: Boolean = true, shape: Shape = JengaCheckboxDefaults.shape, colors: JengaCheckboxColors = JengaCheckboxDefaults.colors())(source)
A checkbox.
Parameters
checked
whether the box is checked.
on Checked Change
called with the new state; pass null for a read-only, externally-driven checkbox (e.g. inside a selectable row), which also drops the control's own 48dp touch area.
modifier
the Modifier for this checkbox.
enabled
whether the checkbox is interactive.
shape
the box shape; defaults to JengaCheckboxDefaults.shape.
colors
the color set; defaults to JengaCheckboxDefaults.colors.
Samples
var checked by remember {
mutableStateOf(
value = false,
)
}
JengaCheckbox(
checked = checked,
onCheckedChange = { checked = it },
)Content copied to clipboard