# CheckboxColors

Artifact: [androidx.compose.material:material](https://developer.android.com/jetpack/androidx/releases/compose-material) [View Source](https://cs.android.com/search?q=file:androidx/compose/material/Checkbox.kt+class:androidx.compose.material.CheckboxColors) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-material#1.0.0) Common/AllAndroid/JVM
- Cmn

  ```
  interface CheckboxColors
  ```

*** ** * ** ***

Represents the colors used by the three different sections (checkmark, box, and border) of a `https://developer.android.com/reference/kotlin/androidx/compose/material/Checkbox.composable#Checkbox(kotlin.Boolean,kotlin.Function1,androidx.compose.ui.Modifier,kotlin.Boolean,androidx.compose.foundation.interaction.MutableInteractionSource,androidx.compose.material.CheckboxColors)` or `https://developer.android.com/reference/kotlin/androidx/compose/material/TriStateCheckbox.composable#TriStateCheckbox(androidx.compose.ui.state.ToggleableState,kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Boolean,androidx.compose.foundation.interaction.MutableInteractionSource,androidx.compose.material.CheckboxColors)` in different states.

See `https://developer.android.com/reference/kotlin/androidx/compose/material/CheckboxDefaults#colors(androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color)` for the default implementation that follows Material specifications.

## Summary

| ### Public functions |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/runtime/State<https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color>` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/compose/material/CheckboxColors#borderColor(kotlin.Boolean,androidx.compose.ui.state.ToggleableState)(enabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, state: https://developer.android.com/reference/kotlin/androidx/compose/ui/state/ToggleableState)` Represents the color used for the border of the checkbox, depending on `https://developer.android.com/reference/kotlin/androidx/compose/material/CheckboxColors#borderColor(kotlin.Boolean,androidx.compose.ui.state.ToggleableState)` and `https://developer.android.com/reference/kotlin/androidx/compose/material/CheckboxColors#borderColor(kotlin.Boolean,androidx.compose.ui.state.ToggleableState)`. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/runtime/State<https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color>` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/compose/material/CheckboxColors#boxColor(kotlin.Boolean,androidx.compose.ui.state.ToggleableState)(enabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, state: https://developer.android.com/reference/kotlin/androidx/compose/ui/state/ToggleableState)` Represents the color used for the box (background) of the checkbox, depending on `https://developer.android.com/reference/kotlin/androidx/compose/material/CheckboxColors#boxColor(kotlin.Boolean,androidx.compose.ui.state.ToggleableState)` and `https://developer.android.com/reference/kotlin/androidx/compose/material/CheckboxColors#boxColor(kotlin.Boolean,androidx.compose.ui.state.ToggleableState)`. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/runtime/State<https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color>` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/compose/material/CheckboxColors#checkmarkColor(androidx.compose.ui.state.ToggleableState)(state: https://developer.android.com/reference/kotlin/androidx/compose/ui/state/ToggleableState)` Represents the color used for the checkmark inside the checkbox, depending on `https://developer.android.com/reference/kotlin/androidx/compose/material/CheckboxColors#checkmarkColor(androidx.compose.ui.state.ToggleableState)`. | Cmn |

## Public functions

### borderColor

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-material#1.0.0)

```
@Composable
fun borderColor(enabled: Boolean, state: ToggleableState): State<Color>
```

Represents the color used for the border of the checkbox, depending on `https://developer.android.com/reference/kotlin/androidx/compose/material/CheckboxColors#borderColor(kotlin.Boolean,androidx.compose.ui.state.ToggleableState)` and `https://developer.android.com/reference/kotlin/androidx/compose/material/CheckboxColors#borderColor(kotlin.Boolean,androidx.compose.ui.state.ToggleableState)`.

| Parameters |
|---|---|
| `enabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | whether the checkbox is enabled or not |
| `state: https://developer.android.com/reference/kotlin/androidx/compose/ui/state/ToggleableState` | the `https://developer.android.com/reference/kotlin/androidx/compose/ui/state/ToggleableState` of the checkbox |

### boxColor

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-material#1.0.0)

```
@Composable
fun boxColor(enabled: Boolean, state: ToggleableState): State<Color>
```

Represents the color used for the box (background) of the checkbox, depending on `https://developer.android.com/reference/kotlin/androidx/compose/material/CheckboxColors#boxColor(kotlin.Boolean,androidx.compose.ui.state.ToggleableState)` and `https://developer.android.com/reference/kotlin/androidx/compose/material/CheckboxColors#boxColor(kotlin.Boolean,androidx.compose.ui.state.ToggleableState)`.

| Parameters |
|---|---|
| `enabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | whether the checkbox is enabled or not |
| `state: https://developer.android.com/reference/kotlin/androidx/compose/ui/state/ToggleableState` | the `https://developer.android.com/reference/kotlin/androidx/compose/ui/state/ToggleableState` of the checkbox |

### checkmarkColor

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-material#1.0.0)

```
@Composable
fun checkmarkColor(state: ToggleableState): State<Color>
```

Represents the color used for the checkmark inside the checkbox, depending on `https://developer.android.com/reference/kotlin/androidx/compose/material/CheckboxColors#checkmarkColor(androidx.compose.ui.state.ToggleableState)`.

| Parameters |
|---|---|
| `state: https://developer.android.com/reference/kotlin/androidx/compose/ui/state/ToggleableState` | the `https://developer.android.com/reference/kotlin/androidx/compose/ui/state/ToggleableState` of the checkbox |