CheckboxColors

interface CheckboxColors


Represents the content colors used in Checkbox in different states.

Summary

Public functions

State<Color>
@Composable
boxColor(enabled: Boolean, checked: Boolean)

Represents the box color for this Checkbox, depending on the enabled and checked properties.

State<Color>
@Composable
checkmarkColor(enabled: Boolean, checked: Boolean)

Represents the checkmark color for this Checkbox, depending on the enabled and checked properties.

Public functions

boxColor

Added in 1.1.0
@Composable
fun boxColor(enabled: Boolean, checked: Boolean): State<Color>

Represents the box color for this Checkbox, depending on the enabled and checked properties.

Parameters
enabled: Boolean

Whether the Checkbox is enabled

checked: Boolean

Whether the Checkbox is currently checked or unchecked

checkmarkColor

Added in 1.1.0
@Composable
fun checkmarkColor(enabled: Boolean, checked: Boolean): State<Color>

Represents the checkmark color for this Checkbox, depending on the enabled and checked properties.

Parameters
enabled: Boolean

Whether the Checkbox is enabled

checked: Boolean

Whether the Checkbox is currently checked or unchecked