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

```kotlin
object WideNavigationRailDefaults
```

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

## Properties

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

```kotlin
val shape: Shape
```

Default container shape of a wide navigation rail.

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

```kotlin
val arrangement: Arrangement.Vertical
```

Default arrangement for a wide navigation rail.

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

```kotlin
val windowInsets: WindowInsets
```

Default window insets for a wide navigation rail.

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

```kotlin
val modalCollapsedShape: Shape
```

Default container shape of a collapsed [ModalWideNavigationRail](/jetpack-compose/androidx.compose.material3/material3/components/ModalWideNavigationRail).

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

```kotlin
val modalExpandedShape: Shape
```

Default container shape of a expanded [ModalWideNavigationRail](/jetpack-compose/androidx.compose.material3/material3/components/ModalWideNavigationRail).

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

```kotlin
val ModalExpandedProperties: ModalWideNavigationRailProperties
```

Properties used to customize the window behavior of a [ModalWideNavigationRail](/jetpack-compose/androidx.compose.material3/material3/components/ModalWideNavigationRail).

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

```kotlin
val ContentPadding =
    PaddingValues(
        start = 0.dp,
        top = WNRVerticalPadding,
        end = 0.dp,
        bottom = WNRVerticalPadding,
    )
```

The default content padding used for [WideNavigationRail](/jetpack-compose/androidx.compose.material3/material3/components/WideNavigationRail) and [ModalWideNavigationRail](/jetpack-compose/androidx.compose.material3/material3/components/ModalWideNavigationRail).

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

> **Deprecated** Deprecated in favor of shape.

```kotlin
@ExperimentalMaterial3ExpressiveApi
val containerShape: Shape
```

Default container shape of a wide navigation rail.

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

> **Deprecated** Deprecated in favor of modalExpandedShape.

```kotlin
@ExperimentalMaterial3ExpressiveApi

val modalContainerShape: Shape
```

Default container shape of a modal wide navigation rail.

## Functions

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

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

<h2 id="colors-containercolor-contentcolor-modalcontainercolor-modalscrimcolor-modalcontentcolor">colors</h2>

```kotlin
@Composable
    fun colors(
        containerColor: Color = WideNavigationRailDefaults.containerColor,
        contentColor: Color = contentColorFor(containerColor),
        modalContainerColor: Color = NavigationRailExpandedTokens.ModalContainerColor.value,
        modalScrimColor: Color =
            ScrimTokens.ContainerColor.value.copy(ScrimTokens.ContainerOpacity),
        modalContentColor: Color = contentColorFor(modalContainerColor),
    ): WideNavigationRailColors
```

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

#### Parameters

| | |
| --- | --- |
| containerColor | the color used for the background of a non-modal wide navigation rail. |
| contentColor | the preferred color for content inside a wide navigation rail. Defaults to either the matching content color for `containerColor`, or to the current [LocalContentColor](/jetpack-compose/androidx.compose.material3/material3/properties/LocalContentColor) if `containerColor` is not a color from the theme |
| modalContainerColor | the color used for the background of a modal wide navigation rail. |
| modalScrimColor | the color used for the scrim overlay for background content of a modal wide navigation rail |
| modalContentColor | the preferred color for content inside a modal wide navigation rail. Defaults to either the matching content color for `modalContainerColor`, or to the current [LocalContentColor](/jetpack-compose/androidx.compose.material3/material3/properties/LocalContentColor) if `modalContainerColor` is not a color from the theme |

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

<h2 id="colors-containercolor-contentcolor-modalcontainercolor-modalscrimcolor">colors</h2>

```kotlin
@ExperimentalMaterial3ExpressiveApi
    @Composable
    fun colors(
        containerColor: Color = WideNavigationRailDefaults.containerColor,
        contentColor: Color = contentColorFor(containerColor),
        modalContainerColor: Color = NavigationRailExpandedTokens.ModalContainerColor.value,
        modalScrimColor: Color = ScrimTokens.ContainerColor.value.copy(ScrimTokens.ContainerOpacity),
    ): WideNavigationRailColors
```

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

#### Parameters

| | |
| --- | --- |
| containerColor | the color used for the background of a non-modal wide navigation rail. |
| contentColor | the preferred color for content inside a wide navigation rail. Defaults to either the matching content color for `containerColor`, or to the current [LocalContentColor](/jetpack-compose/androidx.compose.material3/material3/properties/LocalContentColor) if `containerColor` is not a color from the theme |
| modalContainerColor | the color used for the background of a modal wide navigation rail. |
| modalScrimColor | the color used for the scrim overlay for background content of a modal wide navigation rail |