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

```kotlin
object NavigationRailItemDefaults
```

Defaults used in [NavigationRailItem](/jetpack-compose/androidx.compose.material3/material3/components/NavigationRailItem).

## Functions

```kotlin
@Composable fun colors() = MaterialTheme.colorScheme.defaultNavigationRailItemColors
```

Creates a [NavigationRailItemColors](/jetpack-compose/androidx.compose.material3/material3/classes/NavigationRailItemColors) with the provided colors according to the Material
specification.

<h2 id="colors-selectediconcolor-selectedtextcolor-indicatorcolor-unselectediconcolor-unselectedtextcolor-disablediconcolor-disabledtextcolor">colors</h2>

```kotlin
@Composable
    fun colors(
        selectedIconColor: Color = NavigationRailColorTokens.ItemActiveIcon.value,
        selectedTextColor: Color = NavigationRailColorTokens.ItemActiveLabelText.value,
        indicatorColor: Color = NavigationRailColorTokens.ItemActiveIndicator.value,
        unselectedIconColor: Color = NavigationRailColorTokens.ItemInactiveIcon.value,
        unselectedTextColor: Color = NavigationRailColorTokens.ItemInactiveLabelText.value,
        disabledIconColor: Color = unselectedIconColor.copy(alpha = DisabledAlpha),
        disabledTextColor: Color = unselectedTextColor.copy(alpha = DisabledAlpha),
    ): NavigationRailItemColors
```

Creates a [NavigationRailItemColors](/jetpack-compose/androidx.compose.material3/material3/classes/NavigationRailItemColors) with the provided colors according to the Material
specification.

#### Parameters

| | |
| --- | --- |
| selectedIconColor | the color to use for the icon when the item is selected. |
| selectedTextColor | the color to use for the text label when the item is selected. |
| indicatorColor | the color to use for the indicator when the item is selected. |
| unselectedIconColor | the color to use for the icon when the item is unselected. |
| unselectedTextColor | the color to use for the text label when the item is unselected. |
| disabledIconColor | the color to use for the icon when the item is disabled. |
| disabledTextColor | the color to use for the text label when the item is disabled. |

#### Returns

| | |
| --- | --- |
|  | the resulting [NavigationRailItemColors](/jetpack-compose/androidx.compose.material3/material3/classes/NavigationRailItemColors) used for [NavigationRailItem](/jetpack-compose/androidx.compose.material3/material3/components/NavigationRailItem) |

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

<h2 id="colors-selectediconcolor-selectedtextcolor-indicatorcolor-unselectediconcolor-unselectedtextcolor">colors</h2>

```kotlin
@Composable
    fun colors(
        selectedIconColor: Color = NavigationRailColorTokens.ItemActiveIcon.value,
        selectedTextColor: Color = NavigationRailColorTokens.ItemActiveLabelText.value,
        indicatorColor: Color = NavigationRailColorTokens.ItemActiveIndicator.value,
        unselectedIconColor: Color = NavigationRailColorTokens.ItemInactiveIcon.value,
        unselectedTextColor: Color = NavigationRailColorTokens.ItemInactiveLabelText.value,
    ): NavigationRailItemColors
```