<div class='sourceset sourceset-common'>Common</div>

```kotlin
object CheckboxDefaults
```

Defaults used in [Checkbox](/jetpack-compose/androidx.compose.material3/material3/components/Checkbox) and [TriStateCheckbox](/jetpack-compose/androidx.compose.material3/material3/components/TriStateCheckbox).

## Properties

<div class='sourceset sourceset-common'>Common</div>

```kotlin
val StrokeWidth = 2.dp
```

The default stroke width for a [Checkbox](/jetpack-compose/androidx.compose.material3/material3/components/Checkbox). This width will be used for the checkmark when the
`Checkbox` is in a checked or indeterminate states, or for the outline when it's unchecked.

## Functions

```kotlin
@Composable fun colors() = MaterialTheme.colorScheme.defaultCheckboxColors
```

Creates a [CheckboxColors](/jetpack-compose/androidx.compose.material3/material3/classes/CheckboxColors) that will animate between the provided colors according to the
Material specification.

<h2 id="colors-checkedcolor-uncheckedcolor-checkmarkcolor-disabledcheckedcolor-disableduncheckedcolor-disabledindeterminatecolor">colors</h2>

```kotlin
@Composable
    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
```

Creates a [CheckboxColors](/jetpack-compose/androidx.compose.material3/material3/classes/CheckboxColors) that will animate between the provided colors according to the
Material specification.

#### Parameters

| | |
| --- | --- |
| checkedColor | the color that will be used for the border and box when checked |
| uncheckedColor | color that will be used for the border when unchecked. By default, the inner box is transparent when unchecked. |
| checkmarkColor | color that will be used for the checkmark when checked |
| disabledCheckedColor | color that will be used for the box and border when disabled and checked |
| disabledUncheckedColor | color that will be used for the border when disabled and unchecked. By default, the inner box is transparent when unchecked. |
| disabledIndeterminateColor | color that will be used for the box and border in a [TriStateCheckbox](/jetpack-compose/androidx.compose.material3/material3/components/TriStateCheckbox) when disabled AND in an [ToggleableState.Indeterminate](/jetpack-compose/androidx.compose.ui/ui/classes/ToggleableState.Indeterminate) state |

<hr class="docs-overload-divider">

<h2 id="colors-checkedcheckmarkcolor-uncheckedcheckmarkcolor-disabledcheckmarkcolor-checkedboxcolor-uncheckedboxcolor-disabledcheckedboxcolor-disableduncheckedboxcolor-disabledindeterminateboxcolor-checkedbordercolor-uncheckedbordercolor-disabledbordercolor-disableduncheckedbordercolor-disabledindeterminatebordercolor">colors</h2>

```kotlin
@Composable
    fun colors(
        checkedCheckmarkColor: Color = Color.Unspecified,
        uncheckedCheckmarkColor: Color = Color.Unspecified,
        disabledCheckmarkColor: Color = Color.Unspecified,
        checkedBoxColor: Color = Color.Unspecified,
        uncheckedBoxColor: Color = Color.Unspecified,
        disabledCheckedBoxColor: Color = Color.Unspecified,
        disabledUncheckedBoxColor: Color = Color.Unspecified,
        disabledIndeterminateBoxColor: Color = Color.Unspecified,
        checkedBorderColor: Color = Color.Unspecified,
        uncheckedBorderColor: Color = Color.Unspecified,
        disabledBorderColor: Color = Color.Unspecified,
        disabledUncheckedBorderColor: Color = Color.Unspecified,
        disabledIndeterminateBorderColor: Color = Color.Unspecified,
    ): CheckboxColors
```

Creates a [CheckboxColors](/jetpack-compose/androidx.compose.material3/material3/classes/CheckboxColors) that will animate between the provided colors according to the
Material specification.

#### Parameters

| | |
| --- | --- |
| checkedCheckmarkColor | color that will be used for the checkmark when checked |
| uncheckedCheckmarkColor | color that will be used for the checkmark when unchecked |
| disabledCheckmarkColor | color that will be used for the checkmark when disabled |
| checkedBoxColor | the color that will be used for the box when checked |
| uncheckedBoxColor | color that will be used for the box when unchecked |
| disabledCheckedBoxColor | color that will be used for the box when disabled and checked |
| disabledUncheckedBoxColor | color that will be used for the box when disabled and unchecked |
| disabledIndeterminateBoxColor | color that will be used for the box and border in a [TriStateCheckbox](/jetpack-compose/androidx.compose.material3/material3/components/TriStateCheckbox) when disabled AND in an [ToggleableState.Indeterminate](/jetpack-compose/androidx.compose.ui/ui/classes/ToggleableState.Indeterminate) state. |
| checkedBorderColor | color that will be used for the border when checked |
| uncheckedBorderColor | color that will be used for the border when unchecked |
| disabledBorderColor | color that will be used for the border when disabled and checked |
| disabledUncheckedBorderColor | color that will be used for the border when disabled and unchecked |
| disabledIndeterminateBorderColor | color that will be used for the border when disabled and in an [ToggleableState.Indeterminate](/jetpack-compose/androidx.compose.ui/ui/classes/ToggleableState.Indeterminate) state. |