colors

@Composable
fun colors(): CheckboxColors

Creates a CheckboxColors that will animate between the provided colors according to the Material specification.


@Composable
fun colors(checkedColor: Color = Color.Unspecified, uncheckedColor: Color = Color.Unspecified, checkmarkColor: Color = Color.Unspecified, disabledCheckedColor: Color = Color.Unspecified, disabledUncheckedColor: Color = Color.Unspecified, disabledIndeterminateColor: Color = Color.Unspecified): CheckboxColors

Creates a CheckboxColors that will animate between the provided colors according to the Material specification.

Parameters

checkedColor

the color that will be used for the border and box when checked

uncheckedColor

color that will be used for the border when unchecked. By default, the inner box is transparent when unchecked.

checkmarkColor

color that will be used for the checkmark when checked

disabledCheckedColor

color that will be used for the box and border when disabled and checked

disabledUncheckedColor

color that will be used for the border when disabled and unchecked. By default, the inner box is transparent when unchecked.

disabledIndeterminateColor

color that will be used for the box and border in a TriStateCheckbox when disabled AND in an ToggleableState.Indeterminate state