# WideNavigationRailColors

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

  ```
  class WideNavigationRailColors
  ```

*** ** * ** ***

Represents the colors of the various elements of a wide navigation rail.

## Summary

| ### Public constructors |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/material3/WideNavigationRailColors#WideNavigationRailColors(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)( containerColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, contentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, modalContainerColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, modalScrimColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, modalContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color )` | Cmn |

| ### Public functions |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/material3/WideNavigationRailColors` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/WideNavigationRailColors#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)( containerColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, contentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, modalContainerColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, modalScrimColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, modalContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color )` Returns a copy of this NavigationRailColors, 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/WideNavigationRailColors#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/WideNavigationRailColors#hashCode()()` | Cmn |

| ### Public properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/WideNavigationRailColors#containerColor()` the color used for the background of a non-modal wide navigation rail. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/WideNavigationRailColors#contentColor()` the preferred color for content inside a wide navigation rail. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/WideNavigationRailColors#modalContainerColor()` the color used for the background of a modal wide navigation rail. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/WideNavigationRailColors#modalContentColor()` the preferred color for content inside a modal wide navigation rail. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/WideNavigationRailColors#modalScrimColor()` the color used for the scrim overlay for background content of a modal wide navigation rail | Cmn |

## Public constructors

### WideNavigationRailColors

Cmn

```
WideNavigationRailColors(
    containerColor: Color,
    contentColor: Color,
    modalContainerColor: Color,
    modalScrimColor: Color,
    modalContentColor: Color
)
```

| Parameters |
|---|---|
| `containerColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | the color used for the background of a non-modal wide navigation rail. Use `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color#Transparent()` to have no color |
| `contentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | the preferred color for content inside a wide navigation rail. Defaults to either the matching content color for `https://developer.android.com/reference/kotlin/androidx/compose/material3/WideNavigationRailColors#containerColor()`, or to the current `https://developer.android.com/reference/kotlin/androidx/compose/material3/package-summary#LocalContentColor()` if `https://developer.android.com/reference/kotlin/androidx/compose/material3/WideNavigationRailColors#containerColor()` is not a color from the theme |
| `modalContainerColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | the color used for the background of a modal wide navigation rail. Use `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color#Transparent()` to have no color |
| `modalScrimColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | the color used for the scrim overlay for background content of a modal wide navigation rail |
| `modalContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | the preferred color for content inside a modal wide navigation rail. Defaults to either the matching content color for `https://developer.android.com/reference/kotlin/androidx/compose/material3/WideNavigationRailColors#modalContainerColor()`, or to the current `https://developer.android.com/reference/kotlin/androidx/compose/material3/package-summary#LocalContentColor()` |

## Public functions

### copy

Cmn

```
fun copy(
    containerColor: Color = this.containerColor,
    contentColor: Color = this.contentColor,
    modalContainerColor: Color = this.modalContainerColor,
    modalScrimColor: Color = this.modalScrimColor,
    modalContentColor: Color = this.modalContentColor
): WideNavigationRailColors
```

Returns a copy of this NavigationRailColors, optionally overriding some of the values. This uses the Color.Unspecified to mean "use the value from the source".

### equals

Cmn

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

### hashCode

Cmn

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

## Public properties

### containerColor

Cmn

```
val containerColor: Color
```

the color used for the background of a non-modal wide navigation rail. Use `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color#Transparent()` to have no color

### contentColor

Cmn

```
val contentColor: Color
```

the preferred color for content inside a wide navigation rail. Defaults to either the matching content color for `https://developer.android.com/reference/kotlin/androidx/compose/material3/WideNavigationRailColors#containerColor()`, or to the current `https://developer.android.com/reference/kotlin/androidx/compose/material3/package-summary#LocalContentColor()` if `https://developer.android.com/reference/kotlin/androidx/compose/material3/WideNavigationRailColors#containerColor()` is not a color from the theme

### modalContainerColor

Cmn

```
val modalContainerColor: Color
```

the color used for the background of a modal wide navigation rail. Use `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color#Transparent()` to have no color

### modalContentColor

Cmn

```
val modalContentColor: Color
```

the preferred color for content inside a modal wide navigation rail. Defaults to either the matching content color for `https://developer.android.com/reference/kotlin/androidx/compose/material3/WideNavigationRailColors#modalContainerColor()`, or to the current `https://developer.android.com/reference/kotlin/androidx/compose/material3/package-summary#LocalContentColor()`

### modalScrimColor

Cmn

```
val modalScrimColor: Color
```

the color used for the scrim overlay for background content of a modal wide navigation rail