# SelectableMenuItemColors

Artifact: [androidx.compose.material3:material3](https://developer.android.com/jetpack/androidx/releases/compose-material3) [View Source](https://cs.android.com/search?q=file:androidx/compose/material3/Menu.kt+class:androidx.compose.material3.SelectableMenuItemColors) Common/AllAndroid/JVM
- Cmn

  ```
  class SelectableMenuItemColors
  ```

*** ** * ** ***

Represents the text, icon, and container colors used in a selectable `https://developer.android.com/reference/kotlin/androidx/compose/material3/DropdownMenuItem.composable#DropdownMenuItem(kotlin.Function0,kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Function0,kotlin.Function0,kotlin.Boolean,androidx.compose.material3.MenuItemColors,androidx.compose.foundation.layout.PaddingValues,androidx.compose.foundation.interaction.MutableInteractionSource)` at different states.

When the item is disabled, disabled colors take priority over selected colors.

## Summary

| ### Public constructors |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/material3/SelectableMenuItemColors#SelectableMenuItemColors(androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color)( textColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, containerColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, leadingIconColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, trailingContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, disabledTextColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, disabledContainerColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, disabledLeadingIconColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, disabledTrailingContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, selectedTextColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, selectedContainerColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, selectedLeadingIconColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, selectedTrailingContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color )` | Cmn |

| ### Public functions |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/material3/SelectableMenuItemColors` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/SelectableMenuItemColors#copy(androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color)( textColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, containerColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, leadingIconColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, trailingContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, disabledTextColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, disabledContainerColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, disabledLeadingIconColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, disabledTrailingContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, selectedTextColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, selectedContainerColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, selectedLeadingIconColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, selectedTrailingContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color )` Returns a copy of this `https://developer.android.com/reference/kotlin/androidx/compose/material3/SelectableMenuItemColors`, optionally overriding some of the values. | Cmn |
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/SelectableMenuItemColors#equals(kotlin.Any)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` | Cmn |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/SelectableMenuItemColors#hashCode()()` | Cmn |

| ### Public properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/SelectableMenuItemColors#containerColor()` the container color of this menu item when enabled and unselected | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/SelectableMenuItemColors#disabledContainerColor()` the container color of this menu item when not enabled; takes priority if the item is both selected and disabled | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/SelectableMenuItemColors#disabledLeadingIconColor()` the leading icon color of this menu item when not enabled; takes priority if the item is both selected and disabled | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/SelectableMenuItemColors#disabledTextColor()` the text color of this menu item when not enabled; takes priority if the item is both selected and disabled | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/SelectableMenuItemColors#disabledTrailingContentColor()` the trailing content color of this menu item when not enabled; takes priority if the item is both selected and disabled | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/SelectableMenuItemColors#leadingIconColor()` the leading icon color of this menu item when enabled and unselected | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/SelectableMenuItemColors#selectedContainerColor()` the container color of this menu item when enabled and selected | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/SelectableMenuItemColors#selectedLeadingIconColor()` the leading icon color of this menu item when enabled and selected | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/SelectableMenuItemColors#selectedTextColor()` the text color of this menu item when enabled and selected | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/SelectableMenuItemColors#selectedTrailingContentColor()` the trailing content color of this menu item when enabled and selected | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/SelectableMenuItemColors#textColor()` the text color of this menu item when enabled and unselected | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/SelectableMenuItemColors#trailingContentColor()` the trailing content color of this menu item when enabled and unselected | Cmn |

## Public constructors

### SelectableMenuItemColors

Cmn

```
SelectableMenuItemColors(
    textColor: Color,
    containerColor: Color,
    leadingIconColor: Color,
    trailingContentColor: Color,
    disabledTextColor: Color,
    disabledContainerColor: Color,
    disabledLeadingIconColor: Color,
    disabledTrailingContentColor: Color,
    selectedTextColor: Color,
    selectedContainerColor: Color,
    selectedLeadingIconColor: Color,
    selectedTrailingContentColor: Color
)
```

| Parameters |
|---|---|
| `textColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | the text color of this menu item when enabled and unselected |
| `containerColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | the container color of this menu item when enabled and unselected |
| `leadingIconColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | the leading icon color of this menu item when enabled and unselected |
| `trailingContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | the trailing content color of this menu item when enabled and unselected |
| `disabledTextColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | the text color of this menu item when not enabled; takes priority if the item is both selected and disabled |
| `disabledContainerColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | the container color of this menu item when not enabled; takes priority if the item is both selected and disabled |
| `disabledLeadingIconColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | the leading icon color of this menu item when not enabled; takes priority if the item is both selected and disabled |
| `disabledTrailingContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | the trailing content color of this menu item when not enabled; takes priority if the item is both selected and disabled |
| `selectedTextColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | the text color of this menu item when enabled and selected |
| `selectedContainerColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | the container color of this menu item when enabled and selected |
| `selectedLeadingIconColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | the leading icon color of this menu item when enabled and selected |
| `selectedTrailingContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | the trailing content color of this menu item when enabled and selected |

## Public functions

### copy

Cmn

```
fun copy(
    textColor: Color = this.textColor,
    containerColor: Color = this.containerColor,
    leadingIconColor: Color = this.leadingIconColor,
    trailingContentColor: Color = this.trailingContentColor,
    disabledTextColor: Color = this.disabledTextColor,
    disabledContainerColor: Color = this.disabledContainerColor,
    disabledLeadingIconColor: Color = this.disabledLeadingIconColor,
    disabledTrailingContentColor: Color = this.disabledTrailingContentColor,
    selectedTextColor: Color = this.selectedTextColor,
    selectedContainerColor: Color = this.selectedContainerColor,
    selectedLeadingIconColor: Color = this.selectedLeadingIconColor,
    selectedTrailingContentColor: Color = this.selectedTrailingContentColor
): SelectableMenuItemColors
```

Returns a copy of this `https://developer.android.com/reference/kotlin/androidx/compose/material3/SelectableMenuItemColors`, optionally overriding some of the values. This uses `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color#Unspecified()` to mean "use the value from the source".

When the item is disabled, disabled colors take priority over selected colors.

| Parameters |
|---|---|
| `textColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = this.textColor` | the text color of this menu item when enabled and unselected |
| `containerColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = this.containerColor` | the container color of this menu item when enabled and unselected |
| `leadingIconColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = this.leadingIconColor` | the leading icon color of this menu item when enabled and unselected |
| `trailingContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = this.trailingContentColor` | the trailing content color of this menu item when enabled and unselected |
| `disabledTextColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = this.disabledTextColor` | the text color of this menu item when not enabled; takes priority if the item is both selected and disabled |
| `disabledContainerColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = this.disabledContainerColor` | the container color of this menu item when not enabled; takes priority if the item is both selected and disabled |
| `disabledLeadingIconColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = this.disabledLeadingIconColor` | the leading icon color of this menu item when not enabled; takes priority if the item is both selected and disabled |
| `disabledTrailingContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = this.disabledTrailingContentColor` | the trailing content color of this menu item when not enabled; takes priority if the item is both selected and disabled |
| `selectedTextColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = this.selectedTextColor` | the text color of this menu item when enabled and selected |
| `selectedContainerColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = this.selectedContainerColor` | the container color of this menu item when enabled and selected |
| `selectedLeadingIconColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = this.selectedLeadingIconColor` | the leading icon color of this menu item when enabled and selected |
| `selectedTrailingContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = this.selectedTrailingContentColor` | the trailing content color of this menu item when enabled and selected |

### equals

Cmn

```
open operator fun equals(other: Any?): Boolean
```

### hashCode

Cmn

```
open fun hashCode(): Int
```

## Public properties

### containerColor

Cmn

```
val containerColor: Color
```

the container color of this menu item when enabled and unselected

### disabledContainerColor

Cmn

```
val disabledContainerColor: Color
```

the container color of this menu item when not enabled; takes priority if the item is both selected and disabled

### disabledLeadingIconColor

Cmn

```
val disabledLeadingIconColor: Color
```

the leading icon color of this menu item when not enabled; takes priority if the item is both selected and disabled

### disabledTextColor

Cmn

```
val disabledTextColor: Color
```

the text color of this menu item when not enabled; takes priority if the item is both selected and disabled

### disabledTrailingContentColor

Cmn

```
val disabledTrailingContentColor: Color
```

the trailing content color of this menu item when not enabled; takes priority if the item is both selected and disabled

### leadingIconColor

Cmn

```
val leadingIconColor: Color
```

the leading icon color of this menu item when enabled and unselected

### selectedContainerColor

Cmn

```
val selectedContainerColor: Color
```

the container color of this menu item when enabled and selected

### selectedLeadingIconColor

Cmn

```
val selectedLeadingIconColor: Color
```

the leading icon color of this menu item when enabled and selected

### selectedTextColor

Cmn

```
val selectedTextColor: Color
```

the text color of this menu item when enabled and selected

### selectedTrailingContentColor

Cmn

```
val selectedTrailingContentColor: Color
```

the trailing content color of this menu item when enabled and selected

### textColor

Cmn

```
val textColor: Color
```

the text color of this menu item when enabled and unselected

### trailingContentColor

Cmn

```
val trailingContentColor: Color
```

the trailing content color of this menu item when enabled and unselected