API reference
API reference
Select your platform
No SDKs available
No versions available

CheckboxDefaults Object

Defaults used in .SpatialCheckbox.

Signature

object CheckboxDefaults

Functions

colors ()
Creates a CheckboxColors that will animate between the provided colors.
Signature
fun colors(): CheckboxColors
colors ( checkedColor , uncheckedColor , checkmarkColor , disabledCheckedColor , disabledUncheckedColor , disabledIndeterminateColor )
Creates a CheckboxColors that will animate between the provided colors.
Signature
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
Parameters
checkedColor: Color
the color that will be used for the border and box when checked
uncheckedColor: Color
color that will be used for the border when unchecked. By default, the inner box is transparent when unchecked.
checkmarkColor: Color
color that will be used for the checkmark when checked
disabledCheckedColor: Color
color that will be used for the box and border when disabled and checked
disabledUncheckedColor: Color
color that will be used for the border when disabled and unchecked. By default, the inner box is transparent when unchecked.
disabledIndeterminateColor: Color
color that will be used for the box and border in an ToggleableState.Indeterminate state
Did you find this page helpful?