CheckboxDefaults

object CheckboxDefaults


Contains the default values used by CheckBox.

Summary

Public functions

CheckBoxColors

Creates a default CheckBoxColors.

CheckBoxColors
@Composable
colors(checkedColor: Color, uncheckedColor: Color)
CheckBoxColors
@Composable
colors(checkedColor: ColorProvider, uncheckedColor: ColorProvider)

Public functions

colors

Added in 1.0.0
@Composable
fun colors(): CheckBoxColors

Creates a default CheckBoxColors.

Returns
CheckBoxColors

default CheckBoxColors.

colors

@Composable
fun colors(checkedColor: Color, uncheckedColor: Color): CheckBoxColors
Parameters
checkedColor: Color

the Color to use when the check box is checked.

uncheckedColor: Color

the Color to use when the check box is not checked.

Returns
CheckBoxColors

CheckBoxColors that uses checkedColor or uncheckedColor depending on the checked state of the CheckBox.

colors

Added in 1.0.0
@Composable
fun colors(checkedColor: ColorProvider, uncheckedColor: ColorProvider): CheckBoxColors
Parameters
checkedColor: ColorProvider

the ColorProvider to use when the check box is checked.

uncheckedColor: ColorProvider

the ColorProvider to use when the check box is not checked.

Returns
CheckBoxColors

CheckBoxColors that uses checkedColor or uncheckedColor depending on the checked state of the CheckBox.