CheckboxDefaults

object CheckboxDefaults


Defaults used in Checkbox and TriStateCheckbox.

Summary

Public functions

CheckboxColors

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

CheckboxColors
@Composable
colors(
    checkedColor: Color,
    uncheckedColor: Color,
    checkmarkColor: Color,
    disabledCheckedColor: Color,
    disabledUncheckedColor: Color,
    disabledIndeterminateColor: Color
)

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

Public functions

colors

Added in 1.0.0
@Composable
fun colors(): CheckboxColors

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

colors

@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: Color = Color.Unspecified

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

uncheckedColor: Color = Color.Unspecified

color that will be used for the border when unchecked

checkmarkColor: Color = Color.Unspecified

color that will be used for the checkmark when checked

disabledCheckedColor: Color = Color.Unspecified

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

disabledUncheckedColor: Color = Color.Unspecified

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

disabledIndeterminateColor: Color = Color.Unspecified

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