# CheckboxDefaults

Artifact: [androidx.wear.compose:compose-material](https://developer.android.com/jetpack/androidx/releases/wear-compose) [View Source](https://cs.android.com/search?q=file:androidx/wear/compose/material/ToggleControl.kt+class:androidx.wear.compose.material.CheckboxDefaults) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.1.0)


```
object CheckboxDefaults
```

<br />

*** ** * ** ***

Contains the default values used by `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/Checkbox.composable#Checkbox(kotlin.Boolean,androidx.compose.ui.Modifier,androidx.wear.compose.material.CheckboxColors,kotlin.Boolean,kotlin.Function1,androidx.compose.foundation.interaction.MutableInteractionSource)`.

## Summary

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/CheckboxColors` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/wear/compose/material/CheckboxDefaults#colors(androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color)( checkedBoxColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, checkedCheckmarkColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, uncheckedBoxColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, uncheckedCheckmarkColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color )` Creates a `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/CheckboxColors` for use in a `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/Checkbox.composable#Checkbox(kotlin.Boolean,androidx.compose.ui.Modifier,androidx.wear.compose.material.CheckboxColors,kotlin.Boolean,kotlin.Function1,androidx.compose.foundation.interaction.MutableInteractionSource)`. |

## Public functions

### colors

Added in [1.6.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.6.0)

```
@Composable
fun colors(
    checkedBoxColor: Color = MaterialTheme.colors.secondary,
    checkedCheckmarkColor: Color = checkedBoxColor,
    uncheckedBoxColor: Color = contentColorFor(
                MaterialTheme.colors.primary
                    .copy(alpha = 0.5f)
                    .compositeOver(MaterialTheme.colors.surface)
            ),
    uncheckedCheckmarkColor: Color = uncheckedBoxColor
): CheckboxColors
```

Creates a `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/CheckboxColors` for use in a `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/Checkbox.composable#Checkbox(kotlin.Boolean,androidx.compose.ui.Modifier,androidx.wear.compose.material.CheckboxColors,kotlin.Boolean,kotlin.Function1,androidx.compose.foundation.interaction.MutableInteractionSource)`.

| Parameters |
|---|---|
| `checkedBoxColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = MaterialTheme.colors.secondary` | The box color of this `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/Checkbox.composable#Checkbox(kotlin.Boolean,androidx.compose.ui.Modifier,androidx.wear.compose.material.CheckboxColors,kotlin.Boolean,kotlin.Function1,androidx.compose.foundation.interaction.MutableInteractionSource)` when enabled and checked. |
| `checkedCheckmarkColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = checkedBoxColor` | The check mark color of this `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/Checkbox.composable#Checkbox(kotlin.Boolean,androidx.compose.ui.Modifier,androidx.wear.compose.material.CheckboxColors,kotlin.Boolean,kotlin.Function1,androidx.compose.foundation.interaction.MutableInteractionSource)` when enabled and checked. |
| `uncheckedBoxColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = contentColorFor( MaterialTheme.colors.primary .copy(alpha = 0.5f) .compositeOver(MaterialTheme.colors.surface) )` | The box color of this `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/Checkbox.composable#Checkbox(kotlin.Boolean,androidx.compose.ui.Modifier,androidx.wear.compose.material.CheckboxColors,kotlin.Boolean,kotlin.Function1,androidx.compose.foundation.interaction.MutableInteractionSource)` when enabled and unchecked. |
| `uncheckedCheckmarkColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = uncheckedBoxColor` | The check mark color of this `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/Checkbox.composable#Checkbox(kotlin.Boolean,androidx.compose.ui.Modifier,androidx.wear.compose.material.CheckboxColors,kotlin.Boolean,kotlin.Function1,androidx.compose.foundation.interaction.MutableInteractionSource)` when enabled and unchecked. |