---
title: "SelectableMenuItemColors"
description: "Represents the text, icon, and container colors used in a selectable [DropdownMenuItem] at different states."
type: "class"
---
## API Reference

> Source set: Common

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

Represents the text, icon, and container colors used in a selectable [DropdownMenuItem](/jetpack-compose/androidx.compose.material3/material3/components/DropdownMenuItem/api) at
different states.

#### Parameters

| | |
| --- | --- |
| textColor | the text color of this menu item when enabled and unselected |
| containerColor | the container color of this menu item when enabled and unselected |
| leadingIconColor | the leading icon color of this menu item when enabled and unselected |
| trailingContentColor | the trailing content color of this menu item when enabled and unselected |
| disabledTextColor | the text color of this menu item when not enabled |
| disabledContainerColor | the container color of this menu item when not enabled |
| disabledLeadingIconColor | the leading icon color of this menu item when not enabled |
| disabledTrailingContentColor | the trailing content color of this menu item when not enabled |
| selectedTextColor | the text color of this menu item when enabled and selected |
| selectedContainerColor | the container color of this menu item when enabled and selected |
| selectedLeadingIconColor | the leading icon color of this menu item when enabled and selected |
| selectedTrailingContentColor | the trailing content color of this menu item when enabled and selected |

## Functions

### copy

> Source set: Common

```kotlin
public 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 SelectableMenuItemColors, optionally overriding some of the values.
This uses the Color.Unspecified to mean “use the value from the source”

### equals

> Source set: Common

```kotlin
override fun equals(other: Any?): Boolean
```

### hashCode

> Source set: Common

```kotlin
override fun hashCode(): Int
```
