# NavigationBarItemDefaults

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

  ```
  object NavigationBarItemDefaults
  ```

*** ** * ** ***

Defaults used in `https://developer.android.com/reference/kotlin/androidx/compose/material3/NavigationBarItem.composable#(androidx.compose.foundation.layout.RowScope).NavigationBarItem(kotlin.Boolean,kotlin.Function0,kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Boolean,kotlin.Function0,kotlin.Boolean,androidx.compose.material3.NavigationBarItemColors,androidx.compose.foundation.interaction.MutableInteractionSource)`.

## Summary

| ### Public functions |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/material3/NavigationBarItemColors` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/compose/material3/NavigationBarItemDefaults#colors()()` Creates a `https://developer.android.com/reference/kotlin/androidx/compose/material3/NavigationBarItemColors` with the provided colors according to the Material specification. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/material3/NavigationBarItemColors` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/compose/material3/NavigationBarItemDefaults#colors(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,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color)( selectedIconColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, selectedTextColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, indicatorColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, unselectedIconColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, unselectedTextColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, disabledIconColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, disabledTextColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color )` Creates a `https://developer.android.com/reference/kotlin/androidx/compose/material3/NavigationBarItemColors` with the provided colors according to the Material specification. | Cmn |

## Public functions

### colors

Cmn

```
@Composable
fun colors(): NavigationBarItemColors
```

Creates a `https://developer.android.com/reference/kotlin/androidx/compose/material3/NavigationBarItemColors` with the provided colors according to the Material specification.

### colors

Cmn

```
@Composable
fun colors(
    selectedIconColor: Color = Color.Unspecified,
    selectedTextColor: Color = Color.Unspecified,
    indicatorColor: Color = Color.Unspecified,
    unselectedIconColor: Color = Color.Unspecified,
    unselectedTextColor: Color = Color.Unspecified,
    disabledIconColor: Color = Color.Unspecified,
    disabledTextColor: Color = Color.Unspecified
): NavigationBarItemColors
```

Creates a `https://developer.android.com/reference/kotlin/androidx/compose/material3/NavigationBarItemColors` with the provided colors according to the Material specification.

| Parameters |
|---|---|
| `selectedIconColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = Color.Unspecified` | the color to use for the icon when the item is selected. |
| `selectedTextColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = Color.Unspecified` | the color to use for the text label when the item is selected. |
| `indicatorColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = Color.Unspecified` | the color to use for the indicator when the item is selected. |
| `unselectedIconColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = Color.Unspecified` | the color to use for the icon when the item is unselected. |
| `unselectedTextColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = Color.Unspecified` | the color to use for the text label when the item is unselected. |
| `disabledIconColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = Color.Unspecified` | the color to use for the icon when the item is disabled. |
| `disabledTextColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = Color.Unspecified` | the color to use for the text label when the item is disabled. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/material3/NavigationBarItemColors` | the resulting `https://developer.android.com/reference/kotlin/androidx/compose/material3/NavigationBarItemColors` used for `https://developer.android.com/reference/kotlin/androidx/compose/material3/NavigationBarItem.composable#(androidx.compose.foundation.layout.RowScope).NavigationBarItem(kotlin.Boolean,kotlin.Function0,kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Boolean,kotlin.Function0,kotlin.Boolean,androidx.compose.material3.NavigationBarItemColors,androidx.compose.foundation.interaction.MutableInteractionSource)` |