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

```kotlin
@ExperimentalMaterialApi
object ChipDefaults
```

Contains the baseline values used by chips.

## Properties

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

```kotlin
val MinHeight = 32.dp
```

The min height applied for a chip. Note that you can override it by applying Modifier.height
directly on a chip.

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

```kotlin
val outlinedBorder: BorderStroke
```

The border used by all types of outlined chips

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

```kotlin
const val LeadingIconOpacity = 0.54f
```

The color opacity used for chip's leading icon color

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

```kotlin
const val ContentOpacity = 0.87f
```

The color opacity used for chip's content color

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

```kotlin
const val OutlinedBorderOpacity = 0.12f
```

The color opacity used for the outlined chip's border color

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

```kotlin
val OutlinedBorderSize = 1.dp
```

The outlined chip's border size

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

```kotlin
val LeadingIconSize = 20.dp
```

The size of a chip's leading icon

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

```kotlin
val SelectedIconSize = 18.dp
```

The size of a standalone selected icon

## Functions

<h2 id="chipcolors-backgroundcolor-contentcolor-leadingiconcontentcolor-disabledbackgroundcolor-disabledcontentcolor-disabledleadingiconcontentcolor">chipColors</h2>

```kotlin
@Composable
    fun chipColors(
        backgroundColor: Color =
            MaterialTheme.colors.onSurface
                .copy(alpha = SurfaceOverlayOpacity)
                .compositeOver(MaterialTheme.colors.surface),
        contentColor: Color = MaterialTheme.colors.onSurface.copy(alpha = ContentOpacity),
        leadingIconContentColor: Color = contentColor.copy(alpha = LeadingIconOpacity),
        disabledBackgroundColor: Color =
            MaterialTheme.colors.onSurface
                .copy(alpha = ContentAlpha.disabled * SurfaceOverlayOpacity)
                .compositeOver(MaterialTheme.colors.surface),
        disabledContentColor: Color =
            contentColor.copy(alpha = ContentAlpha.disabled * ContentOpacity),
        disabledLeadingIconContentColor: Color =
            leadingIconContentColor.copy(alpha = ContentAlpha.disabled * LeadingIconOpacity),
    ): ChipColors
```

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

#### Parameters

| | |
| --- | --- |
| backgroundColor | the background color of this chip when enabled |
| contentColor | the content color of this chip when enabled, there is a separate param for icon colors |
| leadingIconContentColor | the color of this chip's start icon when enabled |
| disabledBackgroundColor | the background color of this chip when not enabled |
| disabledContentColor | the content color of this chip when not enabled |
| disabledLeadingIconContentColor | the color of this chip's start icon when not enabled |

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

<h2 id="outlinedchipcolors-backgroundcolor-contentcolor-leadingiconcontentcolor-disabledbackgroundcolor-disabledcontentcolor-disabledleadingiconcontentcolor">outlinedChipColors</h2>

```kotlin
@Composable
    fun outlinedChipColors(
        backgroundColor: Color = MaterialTheme.colors.surface,
        contentColor: Color = MaterialTheme.colors.onSurface.copy(alpha = ContentOpacity),
        leadingIconContentColor: Color = contentColor.copy(alpha = LeadingIconOpacity),
        disabledBackgroundColor: Color = backgroundColor,
        disabledContentColor: Color =
            contentColor.copy(alpha = ContentAlpha.disabled * ContentOpacity),
        disabledLeadingIconContentColor: Color =
            leadingIconContentColor.copy(alpha = ContentAlpha.disabled * LeadingIconOpacity),
    ): ChipColors
```

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

#### Parameters

| | |
| --- | --- |
| backgroundColor | the background color of this chip when enabled |
| contentColor | the content color of this chip when enabled, there is a separate param for icon colors |
| leadingIconContentColor | the leading icon content color of this chip when enabled |
| disabledBackgroundColor | the background color of this chip when not enabled |
| disabledContentColor | the content color of this chip when not enabled |
| disabledLeadingIconContentColor | the color of this chip's start icon when not enabled |

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

<h2 id="filterchipcolors-backgroundcolor-contentcolor-leadingiconcolor-disabledbackgroundcolor-disabledcontentcolor-disabledleadingiconcolor-selectedbackgroundcolor-selectedcontentcolor-selectedleadingiconcolor">filterChipColors</h2>

```kotlin
@Composable
    fun filterChipColors(
        backgroundColor: Color =
            MaterialTheme.colors.onSurface
                .copy(alpha = SurfaceOverlayOpacity)
                .compositeOver(MaterialTheme.colors.surface),
        contentColor: Color = MaterialTheme.colors.onSurface.copy(alpha = ContentOpacity),
        leadingIconColor: Color = contentColor.copy(LeadingIconOpacity),
        disabledBackgroundColor: Color =
            MaterialTheme.colors.onSurface
                .copy(alpha = ContentAlpha.disabled * SurfaceOverlayOpacity)
                .compositeOver(MaterialTheme.colors.surface),
        disabledContentColor: Color =
            contentColor.copy(alpha = ContentAlpha.disabled * ContentOpacity),
        disabledLeadingIconColor: Color =
            leadingIconColor.copy(alpha = ContentAlpha.disabled * LeadingIconOpacity),
        selectedBackgroundColor: Color =
            MaterialTheme.colors.onSurface
                .copy(alpha = SurfaceOverlayOpacity)
                .compositeOver(backgroundColor),
        selectedContentColor: Color =
            MaterialTheme.colors.onSurface
                .copy(alpha = SelectedOverlayOpacity)
                .compositeOver(contentColor),
        selectedLeadingIconColor: Color =
            MaterialTheme.colors.onSurface
                .copy(alpha = SelectedOverlayOpacity)
                .compositeOver(leadingIconColor),
    ): SelectableChipColors
```

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

#### Parameters

| | |
| --- | --- |
| backgroundColor | the background color of this chip when enabled |
| contentColor | the content color of this chip when enabled |
| leadingIconColor | the color of this chip's start icon when enabled |
| disabledBackgroundColor | the background color of this chip when not enabled |
| disabledContentColor | the content color of this chip when not enabled |
| disabledLeadingIconColor | the color of this chip's start icon when not enabled |
| selectedBackgroundColor | the background color of this chip when selected |
| selectedContentColor | the content color of this chip when selected |
| selectedLeadingIconColor | the color of this chip's start icon when selected |

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

<h2 id="outlinedfilterchipcolors-backgroundcolor-contentcolor-leadingiconcolor-disabledbackgroundcolor-disabledcontentcolor-disabledleadingiconcolor-selectedbackgroundcolor-selectedcontentcolor-selectedleadingiconcolor">outlinedFilterChipColors</h2>

```kotlin
@Composable
    fun outlinedFilterChipColors(
        backgroundColor: Color = MaterialTheme.colors.surface,
        contentColor: Color = MaterialTheme.colors.onSurface.copy(ContentOpacity),
        leadingIconColor: Color = contentColor.copy(LeadingIconOpacity),
        disabledBackgroundColor: Color = backgroundColor,
        disabledContentColor: Color =
            contentColor.copy(alpha = ContentAlpha.disabled * ContentOpacity),
        disabledLeadingIconColor: Color =
            leadingIconColor.copy(alpha = ContentAlpha.disabled * LeadingIconOpacity),
        selectedBackgroundColor: Color =
            MaterialTheme.colors.onSurface
                .copy(alpha = SelectedOverlayOpacity)
                .compositeOver(backgroundColor),
        selectedContentColor: Color =
            MaterialTheme.colors.onSurface
                .copy(alpha = SelectedOverlayOpacity)
                .compositeOver(contentColor),
        selectedLeadingIconColor: Color =
            MaterialTheme.colors.onSurface
                .copy(alpha = SelectedOverlayOpacity)
                .compositeOver(leadingIconColor),
    ): SelectableChipColors
```

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

#### Parameters

| | |
| --- | --- |
| backgroundColor | the background color of this chip when enabled |
| contentColor | the content color of this chip when enabled |
| leadingIconColor | the color of this chip's start icon when enabled |
| disabledBackgroundColor | the background color of this chip when not enabled |
| disabledContentColor | the content color of this chip when not enabled |
| disabledLeadingIconColor | the color of this chip's start icon when not enabled |
| selectedBackgroundColor | the background color of this chip when selected |
| selectedContentColor | the content color of this chip when selected |
| selectedLeadingIconColor | the color of this chip's start icon when selected |