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

```kotlin
object WideNavigationRailItemDefaults
```

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

## Properties

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

```kotlin
val IndicatorCollapsedPadding =
    PaddingValues(
        horizontal = ItemTopIconIndicatorHorizontalPadding,
        vertical = ItemTopIconIndicatorVerticalPadding,
    )
```

The default padding to be applied when the associated [WideNavigationRailItem](/jetpack-compose/androidx.compose.material3/material3/components/WideNavigationRailItem) is collapsed.

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

```kotlin
val IndicatorExpandedPadding =
    PaddingValues(
        horizontal = NavigationRailHorizontalItemTokens.FullWidthLeadingSpace,
        vertical = ItemStartIconIndicatorVerticalPadding,
    )
```

The default padding to be applied when the associated [WideNavigationRailItem](/jetpack-compose/androidx.compose.material3/material3/components/WideNavigationRailItem) is expanded.

## Functions

<h2 id="indicatorpadding-railexpanded-collapsedpadding-expandedpadding">indicatorPadding</h2>

```kotlin
@Composable
    fun indicatorPadding(
        railExpanded: Boolean,
        collapsedPadding: PaddingValues = IndicatorCollapsedPadding,
        expandedPadding: PaddingValues = IndicatorExpandedPadding,
    ): PaddingValues
```

The default indicator padding of a [WideNavigationRailItem](/jetpack-compose/androidx.compose.material3/material3/components/WideNavigationRailItem).

#### Parameters

| | |
| --- | --- |
| collapsedPadding | the padding to be applied when the associated [WideNavigationRail](/jetpack-compose/androidx.compose.material3/material3/components/WideNavigationRail) is collapsed |
| expandedPadding | the padding to be applied when the associated [WideNavigationRail](/jetpack-compose/androidx.compose.material3/material3/components/WideNavigationRail) is expanded |
| railExpanded | whether the associated [WideNavigationRail](/jetpack-compose/androidx.compose.material3/material3/components/WideNavigationRail) is expanded or collapsed |

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

<h2 id="iconpositionfor-railexpanded">iconPositionFor</h2>

```kotlin
fun iconPositionFor(railExpanded: Boolean) =
        if (railExpanded) NavigationItemIconPosition.Start else NavigationItemIconPosition.Top
```

The default icon position of a [WideNavigationRailItem](/jetpack-compose/androidx.compose.material3/material3/components/WideNavigationRailItem) given whether the associated
[WideNavigationRail](/jetpack-compose/androidx.compose.material3/material3/components/WideNavigationRail) is collapsed or expanded.

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

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

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

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

```kotlin
@Composable
    fun colors(
        selectedIconColor: Color = NavigationRailColorTokens.ItemActiveIcon.value,
        selectedTextColor: Color = NavigationRailColorTokens.ItemActiveLabelText.value,
        selectedIndicatorColor: 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),
    ): NavigationItemColors
```

Creates a [NavigationItemColors](/jetpack-compose/androidx.compose.material3/material3/classes/NavigationItemColors) 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. |
| selectedIndicatorColor | 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 [NavigationItemColors](/jetpack-compose/androidx.compose.material3/material3/classes/NavigationItemColors) used for [WideNavigationRailItem](/jetpack-compose/androidx.compose.material3/material3/components/WideNavigationRailItem) |