# NavigationDrawerItemColors

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/NavigationDrawer.kt+class:androidx.compose.material3.NavigationDrawerItemColors) Common/AllAndroid/JVM
- Cmn

  ```
  interface NavigationDrawerItemColors
  ```

*** ** * ** ***

Represents the colors of the various elements of a drawer item.

## Summary

| ### Public functions |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/runtime/State<https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color>` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/compose/material3/NavigationDrawerItemColors#badgeColor(kotlin.Boolean)(selected: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` Represents the badge color for this item, depending on whether it is `https://developer.android.com/reference/kotlin/androidx/compose/material3/NavigationDrawerItemColors#badgeColor(kotlin.Boolean)`. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/runtime/State<https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color>` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/compose/material3/NavigationDrawerItemColors#containerColor(kotlin.Boolean)(selected: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` Represents the container color for this item, depending on whether it is `https://developer.android.com/reference/kotlin/androidx/compose/material3/NavigationDrawerItemColors#containerColor(kotlin.Boolean)`. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/runtime/State<https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color>` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/compose/material3/NavigationDrawerItemColors#iconColor(kotlin.Boolean)(selected: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` Represents the icon color for this item, depending on whether it is `https://developer.android.com/reference/kotlin/androidx/compose/material3/NavigationDrawerItemColors#iconColor(kotlin.Boolean)`. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/runtime/State<https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color>` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/compose/material3/NavigationDrawerItemColors#textColor(kotlin.Boolean)(selected: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` Represents the text color for this item, depending on whether it is `https://developer.android.com/reference/kotlin/androidx/compose/material3/NavigationDrawerItemColors#textColor(kotlin.Boolean)`. | Cmn |

## Public functions

### badgeColor

Cmn

```
@Composable
fun badgeColor(selected: Boolean): State<Color>
```

Represents the badge color for this item, depending on whether it is `https://developer.android.com/reference/kotlin/androidx/compose/material3/NavigationDrawerItemColors#badgeColor(kotlin.Boolean)`.

| Parameters |
|---|---|
| `selected: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | whether the item is selected |

### containerColor

Cmn

```
@Composable
fun containerColor(selected: Boolean): State<Color>
```

Represents the container color for this item, depending on whether it is `https://developer.android.com/reference/kotlin/androidx/compose/material3/NavigationDrawerItemColors#containerColor(kotlin.Boolean)`.

| Parameters |
|---|---|
| `selected: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | whether the item is selected |

### iconColor

Cmn

```
@Composable
fun iconColor(selected: Boolean): State<Color>
```

Represents the icon color for this item, depending on whether it is `https://developer.android.com/reference/kotlin/androidx/compose/material3/NavigationDrawerItemColors#iconColor(kotlin.Boolean)`.

| Parameters |
|---|---|
| `selected: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | whether the item is selected |

### textColor

Cmn

```
@Composable
fun textColor(selected: Boolean): State<Color>
```

Represents the text color for this item, depending on whether it is `https://developer.android.com/reference/kotlin/androidx/compose/material3/NavigationDrawerItemColors#textColor(kotlin.Boolean)`.

| Parameters |
|---|---|
| `selected: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | whether the item is selected |