Skip to content
🤔 Documentation issue? Report or edit

Checkbox

@Composable
fun CheckBoxDemo() {
    val checkedState = remember { mutableStateOf(true) }
    Checkbox(
        checked = checkedState.value,
        onCheckedChange = { checkedState.value = it }
    )
}

See also:


Last update: July 27, 2022