<div class='sourceset sourceset-android'>Android</div>

```kotlin
public object CheckboxDefaults
```

Contains the default values used by [CheckBox](/jetpack-compose/androidx.glance/glance-appwidget/composable-functions/CheckBox).

## Functions

<h2 id="colors-checkedcolor-uncheckedcolor">colors</h2>

```kotlin
@Composable
public fun colors(checkedColor: ColorProvider, uncheckedColor: ColorProvider): CheckBoxColors
```

#### Parameters

| | |
| --- | --- |
| checkedColor | the [ColorProvider](/jetpack-compose/androidx.glance/glance/interfaces/ColorProvider) to use when the check box is checked. |
| uncheckedColor | the [ColorProvider](/jetpack-compose/androidx.glance/glance/interfaces/ColorProvider) to use when the check box is not checked. |

#### Returns

| | |
| --- | --- |
|  | [CheckBoxColors](/jetpack-compose/androidx.glance/glance-appwidget/classes/CheckBoxColors) that uses `checkedColor` or `uncheckedColor` depending on the checked state of the CheckBox. |

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

<h2 id="checkboxcolors-checkedcolor-uncheckedcolor">checkBoxColors</h2>

```kotlin
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
public fun checkBoxColors(
    checkedColor: ColorProvider,
    uncheckedColor: ColorProvider,
): CheckBoxColors
```

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

<h2 id="colors-checkedcolor-uncheckedcolor-2">colors</h2>

```kotlin
@Composable
public fun colors(checkedColor: Color, uncheckedColor: Color): CheckBoxColors
```

#### Parameters

| | |
| --- | --- |
| checkedColor | the [Color](/jetpack-compose/androidx.compose.ui/ui-graphics/classes/Color) to use when the check box is checked. |
| uncheckedColor | the [Color](/jetpack-compose/androidx.compose.ui/ui-graphics/classes/Color) to use when the check box is not checked. |

#### Returns

| | |
| --- | --- |
|  | [CheckBoxColors](/jetpack-compose/androidx.glance/glance-appwidget/classes/CheckBoxColors) that uses `checkedColor` or `uncheckedColor` depending on the checked state of the CheckBox. |

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

<h2 id="colors">colors</h2>

```kotlin
@Composable
public fun colors(): CheckBoxColors
```

Creates a default [CheckBoxColors](/jetpack-compose/androidx.glance/glance-appwidget/classes/CheckBoxColors).

#### Returns

| | |
| --- | --- |
|  | default [CheckBoxColors](/jetpack-compose/androidx.glance/glance-appwidget/classes/CheckBoxColors). |