Checkbox

fun Checkbox(state: ToggleableState, onClick: () -> Unit?, modifier: Modifier = Modifier, colors: CheckboxColors = CheckboxDefaults.checkboxColors(), enabled: Boolean = true)

A Checkbox component with Miuix style, supporting three states: On, Off, and Indeterminate.

Parameters

state

The current ToggleableState of the Checkbox.

onClick

The callback to be called when the Checkbox is clicked. The caller is responsible for updating the state. If null, the Checkbox is not interactive.

modifier

The modifier to be applied to the Checkbox.

colors
enabled

Whether the Checkbox is enabled.