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

```kotlin
public object ChipDefaults
```

Contains the default values used by [Chip](/jetpack-compose/androidx.wear.compose/compose-material/components/Chip)

## Functions

<h2 id="primarychipcolors-backgroundcolor-contentcolor-secondarycontentcolor-iconcolor">primaryChipColors</h2>

```kotlin
@Composable
public fun primaryChipColors(
    backgroundColor: Color = MaterialTheme.colors.primary,
    contentColor: Color = contentColorFor(backgroundColor),
    secondaryContentColor: Color = contentColor,
    iconColor: Color = contentColor,
): ChipColors
```

Creates a [ChipColors](/jetpack-compose/androidx.wear.compose/compose-material/interfaces/ChipColors) that represents the default background and content colors for a
primary [Chip](/jetpack-compose/androidx.wear.compose/compose-material/components/Chip). Primary chips have a colored background with a contrasting content color. If
a chip is disabled then the colors will have an alpha([ContentAlpha.disabled](/jetpack-compose/androidx.wear.compose/compose-material/objects/ContentAlpha)) value applied.

#### Parameters

| | |
| --- | --- |
| backgroundColor | The background color of this [Chip](/jetpack-compose/androidx.wear.compose/compose-material/components/Chip) when enabled |
| contentColor | The content color of this [Chip](/jetpack-compose/androidx.wear.compose/compose-material/components/Chip) when enabled |
| secondaryContentColor | The secondary content color of this [Chip](/jetpack-compose/androidx.wear.compose/compose-material/components/Chip) when enabled, used for secondaryLabel content |
| iconColor | The icon color of this [Chip](/jetpack-compose/androidx.wear.compose/compose-material/components/Chip) when enabled, used for icon content |

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

<h2 id="gradientbackgroundchipcolors-startbackgroundcolor-endbackgroundcolor-contentcolor-secondarycontentcolor-iconcolor-gradientdirection">gradientBackgroundChipColors</h2>

```kotlin
@Composable
public fun gradientBackgroundChipColors(
    startBackgroundColor: Color =
        MaterialTheme.colors.primary
            .copy(alpha = 0.5f)
            .compositeOver(MaterialTheme.colors.surface),
    endBackgroundColor: Color =
        MaterialTheme.colors.surface
            .copy(alpha = 0f)
            .compositeOver(MaterialTheme.colors.surface),
    contentColor: Color = contentColorFor(endBackgroundColor),
    secondaryContentColor: Color = contentColor,
    iconColor: Color = contentColor,
    gradientDirection: LayoutDirection = LocalLayoutDirection.current,
): ChipColors
```

Creates a [ChipColors](/jetpack-compose/androidx.wear.compose/compose-material/interfaces/ChipColors) that represents the background and content colors for a primary [Chip](/jetpack-compose/androidx.wear.compose/compose-material/components/Chip)
with a linear gradient for a background. The gradient will be between startBackgroundColor
and endBackgroundColor. Gradient backgrounds are typically used for chips showing an on-going
activity, such as a music track that is playing.

Gradient background chips should have a content color that contrasts with the background
gradient. If a chip is disabled then the colors will have an alpha([ContentAlpha.disabled](/jetpack-compose/androidx.wear.compose/compose-material/objects/ContentAlpha))
value applied.

#### Parameters

| | |
| --- | --- |
| startBackgroundColor | The background color used at the start of the gradient of this [Chip](/jetpack-compose/androidx.wear.compose/compose-material/components/Chip) when enabled |
| endBackgroundColor | The background color used at the end of the gradient of this [Chip](/jetpack-compose/androidx.wear.compose/compose-material/components/Chip) when enabled |
| contentColor | The content color of this [Chip](/jetpack-compose/androidx.wear.compose/compose-material/components/Chip) when enabled |
| secondaryContentColor | The secondary content color of this [Chip](/jetpack-compose/androidx.wear.compose/compose-material/components/Chip) when enabled, used for secondaryLabel content |
| iconColor | The icon color of this [Chip](/jetpack-compose/androidx.wear.compose/compose-material/components/Chip) when enabled, used for icon content |
| gradientDirection | Whether the chips gradient should be start to end (indicated by [LayoutDirection.Ltr](/jetpack-compose/androidx.compose.ui/ui-unit/classes/LayoutDirection.Ltr)) or end to start (indicated by [LayoutDirection.Rtl](/jetpack-compose/androidx.compose.ui/ui-unit/classes/LayoutDirection.Rtl)). |

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

<h2 id="secondarychipcolors-backgroundcolor-contentcolor-secondarycontentcolor-iconcolor">secondaryChipColors</h2>

```kotlin
@Composable
public fun secondaryChipColors(
    backgroundColor: Color = MaterialTheme.colors.surface,
    contentColor: Color = contentColorFor(backgroundColor),
    secondaryContentColor: Color = contentColor,
    iconColor: Color = contentColor,
): ChipColors
```

Creates a [ChipColors](/jetpack-compose/androidx.wear.compose/compose-material/interfaces/ChipColors) that represents the default background and content colors for a
secondary [Chip](/jetpack-compose/androidx.wear.compose/compose-material/components/Chip). Secondary chips have a muted background with a contrasting content color.
If a chip is disabled then the colors will have an alpha([ContentAlpha.disabled](/jetpack-compose/androidx.wear.compose/compose-material/objects/ContentAlpha)) value
applied.

#### Parameters

| | |
| --- | --- |
| backgroundColor | The background color of this [Chip](/jetpack-compose/androidx.wear.compose/compose-material/components/Chip) when enabled |
| contentColor | The content color of this [Chip](/jetpack-compose/androidx.wear.compose/compose-material/components/Chip) when enabled |
| secondaryContentColor | The secondary content color of this [Chip](/jetpack-compose/androidx.wear.compose/compose-material/components/Chip) when enabled, used for secondaryLabel content |
| iconColor | The icon color of this [Chip](/jetpack-compose/androidx.wear.compose/compose-material/components/Chip) when enabled, used for icon content |

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

<h2 id="childchipcolors-contentcolor-secondarycontentcolor-iconcolor">childChipColors</h2>

```kotlin
@Composable
public fun childChipColors(
    contentColor: Color = MaterialTheme.colors.onSurface,
    secondaryContentColor: Color = contentColor,
    iconColor: Color = contentColor,
): ChipColors
```

Creates a [ChipColors](/jetpack-compose/androidx.wear.compose/compose-material/interfaces/ChipColors) that represents the default background (transparent) and content
colors for a child [Chip](/jetpack-compose/androidx.wear.compose/compose-material/components/Chip). Child chips have a transparent background and use a default
content color of [Colors.onSurface](/jetpack-compose/androidx.wear.compose/compose-material/classes/Colors).

If a chip is disabled then the colors will have an alpha([ContentAlpha.disabled](/jetpack-compose/androidx.wear.compose/compose-material/objects/ContentAlpha)) value
applied.

#### Parameters

| | |
| --- | --- |
| contentColor | The content color of this [Chip](/jetpack-compose/androidx.wear.compose/compose-material/components/Chip) when enabled |
| secondaryContentColor | The secondary content color of this [Chip](/jetpack-compose/androidx.wear.compose/compose-material/components/Chip) when enabled, used for secondaryLabel content |
| iconColor | The icon color of this [Chip](/jetpack-compose/androidx.wear.compose/compose-material/components/Chip) when enabled, used for icon content |

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

<h2 id="imagebackgroundchipcolors-backgroundimagepainter-backgroundimagescrimbrush-contentcolor-secondarycontentcolor-iconcolor">imageBackgroundChipColors</h2>

```kotlin
@Composable
public fun imageBackgroundChipColors(
    backgroundImagePainter: Painter,
    backgroundImageScrimBrush: Brush =
        Brush.linearGradient(
            colors =
                listOf(
                    MaterialTheme.colors.surface.copy(alpha = 1.0f),
                    MaterialTheme.colors.surface.copy(alpha = 0f),
                )
        ),
    contentColor: Color = MaterialTheme.colors.onBackground,
    secondaryContentColor: Color = contentColor,
    iconColor: Color = contentColor,
): ChipColors
```

Creates a [ChipColors](/jetpack-compose/androidx.wear.compose/compose-material/interfaces/ChipColors) for an image background [Chip](/jetpack-compose/androidx.wear.compose/compose-material/components/Chip). Image background chips have an image
as the background of the chip typically with a scrim over the image to ensure that the
content is visible, and use a default content color of [Colors.onBackground](/jetpack-compose/androidx.wear.compose/compose-material/classes/Colors).

#### Parameters

| | |
| --- | --- |
| backgroundImagePainter | The [Painter](/jetpack-compose/androidx.compose.ui/ui-graphics/classes/Painter) to use to draw the background of the [Chip](/jetpack-compose/androidx.wear.compose/compose-material/components/Chip) |
| backgroundImageScrimBrush | The [Brush](/jetpack-compose/androidx.compose.ui/ui-graphics/classes/Brush) to use to paint a scrim over the background image to ensure that any text drawn over the image is legible |
| contentColor | The content color of this [Chip](/jetpack-compose/androidx.wear.compose/compose-material/components/Chip) when enabled |
| secondaryContentColor | The secondary content color of this [Chip](/jetpack-compose/androidx.wear.compose/compose-material/components/Chip) when enabled, used for secondaryLabel content |
| iconColor | The icon color of this [Chip](/jetpack-compose/androidx.wear.compose/compose-material/components/Chip) when enabled, used for icon content |

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

<h2 id="outlinedchipcolors-contentcolor-secondarycontentcolor-iconcolor">outlinedChipColors</h2>

```kotlin
@Composable
public fun outlinedChipColors(
    contentColor: Color = MaterialTheme.colors.primary,
    secondaryContentColor: Color = contentColor,
    iconColor: Color = contentColor,
): ChipColors
```

Creates a [ChipColors](/jetpack-compose/androidx.wear.compose/compose-material/interfaces/ChipColors) for an outline [Chip](/jetpack-compose/androidx.wear.compose/compose-material/components/Chip). Outline chips have a transparent background
with a thin border.

If a chip is disabled then the colors will have an alpha([ContentAlpha.disabled](/jetpack-compose/androidx.wear.compose/compose-material/objects/ContentAlpha)) value
applied.

#### Parameters

| | |
| --- | --- |
| contentColor | The content color of this [Chip](/jetpack-compose/androidx.wear.compose/compose-material/components/Chip) when enabled |
| secondaryContentColor | The secondary content color of this [Chip](/jetpack-compose/androidx.wear.compose/compose-material/components/Chip) when enabled, used for secondaryLabel content |
| iconColor | The icon color of this [Chip](/jetpack-compose/androidx.wear.compose/compose-material/components/Chip) when enabled, used for icon content |

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

<h2 id="chipborder-borderstroke-disabledborderstroke">chipBorder</h2>

```kotlin
@Composable
public fun chipBorder(
    borderStroke: BorderStroke? = null,
    disabledBorderStroke: BorderStroke? = null,
): ChipBorder
```

Creates a default (no border) [ChipBorder](/jetpack-compose/androidx.wear.compose/compose-material/interfaces/ChipBorder) for a [Chip](/jetpack-compose/androidx.wear.compose/compose-material/components/Chip)

#### Parameters

| | |
| --- | --- |
| borderStroke | The border for this [Chip](/jetpack-compose/androidx.wear.compose/compose-material/components/Chip) when enabled |
| disabledBorderStroke | The border to use for this [Chip](/jetpack-compose/androidx.wear.compose/compose-material/components/Chip) when disabled |

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

<h2 id="outlinedchipborder-bordercolor-disabledbordercolor-borderwidth">outlinedChipBorder</h2>

```kotlin
@Composable
public fun outlinedChipBorder(
    borderColor: Color = MaterialTheme.colors.primaryVariant.copy(alpha = 0.6f),
    disabledBorderColor: Color = borderColor.copy(alpha = ContentAlpha.disabled),
    borderWidth: Dp = 1.dp,
): ChipBorder
```

Creates a [ChipBorder](/jetpack-compose/androidx.wear.compose/compose-material/interfaces/ChipBorder) for an [OutlinedChip](/jetpack-compose/androidx.wear.compose/compose-material/components/OutlinedChip)

#### Parameters

| | |
| --- | --- |
| borderColor | The color to use for the border for this [OutlinedChip](/jetpack-compose/androidx.wear.compose/compose-material/components/OutlinedChip) when enabled |
| disabledBorderColor | The color to use for the border for this [OutlinedChip](/jetpack-compose/androidx.wear.compose/compose-material/components/OutlinedChip) when disabled |
| borderWidth | The width to use for the border for this [OutlinedChip](/jetpack-compose/androidx.wear.compose/compose-material/components/OutlinedChip) |

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

<h2 id="chipcolors-backgroundcolor-contentcolor-secondarycontentcolor-iconcolor-disabledbackgroundcolor-disabledcontentcolor-disabledsecondarycontentcolor-disablediconcolor">chipColors</h2>

```kotlin
@Composable
public fun chipColors(
    backgroundColor: Color = MaterialTheme.colors.primary,
    contentColor: Color = contentColorFor(backgroundColor),
    secondaryContentColor: Color = contentColor,
    iconColor: Color = contentColor,
    disabledBackgroundColor: Color = backgroundColor.copy(alpha = ContentAlpha.disabled),
    disabledContentColor: Color = contentColor.copy(alpha = ContentAlpha.disabled),
    disabledSecondaryContentColor: Color =
        secondaryContentColor.copy(alpha = ContentAlpha.disabled),
    disabledIconColor: Color = iconColor.copy(alpha = ContentAlpha.disabled),
): ChipColors
```

Creates a [ChipColors](/jetpack-compose/androidx.wear.compose/compose-material/interfaces/ChipColors) that represents the default background and content colors used in a
[Chip](/jetpack-compose/androidx.wear.compose/compose-material/components/Chip).

#### Parameters

| | |
| --- | --- |
| backgroundColor | The background color of this [Chip](/jetpack-compose/androidx.wear.compose/compose-material/components/Chip) when enabled |
| contentColor | The content color of this [Chip](/jetpack-compose/androidx.wear.compose/compose-material/components/Chip) when enabled |
| secondaryContentColor | The content color of this [Chip](/jetpack-compose/androidx.wear.compose/compose-material/components/Chip) when enabled |
| iconColor | The content color of this [Chip](/jetpack-compose/androidx.wear.compose/compose-material/components/Chip) when enabled |
| disabledBackgroundColor | The background color of this [Chip](/jetpack-compose/androidx.wear.compose/compose-material/components/Chip) when not enabled |
| disabledContentColor | The content color of this [Chip](/jetpack-compose/androidx.wear.compose/compose-material/components/Chip) when not enabled |
| disabledSecondaryContentColor | The content color of this [Chip](/jetpack-compose/androidx.wear.compose/compose-material/components/Chip) when not enabled |
| disabledIconColor | The content color of this [Chip](/jetpack-compose/androidx.wear.compose/compose-material/components/Chip) when not enabled |

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

<h2 id="chipcolors-backgroundpainter-contentcolor-secondarycontentcolor-iconcolor-disabledbackgroundpainter-disabledcontentcolor-disabledsecondarycontentcolor-disablediconcolor">chipColors</h2>

```kotlin
@ExperimentalWearMaterialApi
public fun chipColors(
    backgroundPainter: Painter,
    contentColor: Color,
    secondaryContentColor: Color,
    iconColor: Color,
    disabledBackgroundPainter: Painter,
    disabledContentColor: Color,
    disabledSecondaryContentColor: Color,
    disabledIconColor: Color,
): ChipColors
```

Creates a [ChipColors](/jetpack-compose/androidx.wear.compose/compose-material/interfaces/ChipColors) where all of the values are explicitly defined.

#### Parameters

| | |
| --- | --- |
| backgroundPainter | The background painter of this [Chip](/jetpack-compose/androidx.wear.compose/compose-material/components/Chip) when enabled |
| contentColor | The content color of this [Chip](/jetpack-compose/androidx.wear.compose/compose-material/components/Chip) when enabled |
| secondaryContentColor | The content color of this [Chip](/jetpack-compose/androidx.wear.compose/compose-material/components/Chip) when enabled |
| iconColor | The content color of this [Chip](/jetpack-compose/androidx.wear.compose/compose-material/components/Chip) when enabled |
| disabledBackgroundPainter | The background painter of this [Chip](/jetpack-compose/androidx.wear.compose/compose-material/components/Chip) when not enabled |
| disabledContentColor | The content color of this [Chip](/jetpack-compose/androidx.wear.compose/compose-material/components/Chip) when not enabled |
| disabledSecondaryContentColor | The content color of this [Chip](/jetpack-compose/androidx.wear.compose/compose-material/components/Chip) when not enabled |
| disabledIconColor | The content color of this [Chip](/jetpack-compose/androidx.wear.compose/compose-material/components/Chip) when not enabled |