# ShortNavigationBarItemDefaults

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

  ```
  object ShortNavigationBarItemDefaults
  ```

*** ** * ** ***

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

## Summary

| ### Public functions |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/material3/NavigationItemColors` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/compose/material3/ShortNavigationBarItemDefaults#colors()()` Creates a `https://developer.android.com/reference/kotlin/androidx/compose/material3/NavigationItemColors` with the provided colors according to the Material specification. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/material3/NavigationItemColors` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/compose/material3/ShortNavigationBarItemDefaults#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,androidx.compose.ui.graphics.Color)( selectedIconColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, selectedTextColorTopIconPosition: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, selectedTextColorStartIconPosition: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, selectedIndicatorColor: 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/NavigationItemColors` with the provided colors according to the Material specification. | Cmn |

## Public functions

### colors

Cmn

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

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

### colors

Cmn

```
@Composable
fun colors(
    selectedIconColor: Color = NavigationBarTokens.ItemActiveIconColor.value,
    selectedTextColorTopIconPosition: Color = NavigationBarTokens.ItemActiveLabelTextColor.value,
    selectedTextColorStartIconPosition: Color = NavigationBarTokens.ItemActiveIconColor.value,
    selectedIndicatorColor: Color = NavigationBarTokens.ItemActiveIndicatorColor.value,
    unselectedIconColor: Color = NavigationBarTokens.ItemInactiveIconColor.value,
    unselectedTextColor: Color = NavigationBarTokens.ItemInactiveLabelTextColor.value,
    disabledIconColor: Color = unselectedIconColor.copy(alpha = DisabledAlpha),
    disabledTextColor: Color = unselectedTextColor.copy(alpha = DisabledAlpha)
): NavigationItemColors
```

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

| Parameters |
|---|---|
| `selectedIconColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = NavigationBarTokens.ItemActiveIconColor.value` | the color to use for the icon when the item is selected. |
| `selectedTextColorTopIconPosition: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = NavigationBarTokens.ItemActiveLabelTextColor.value` | the color to use for the text label when the item is selected and is in the Top icon position configuration. |
| `selectedTextColorStartIconPosition: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = NavigationBarTokens.ItemActiveIconColor.value` | the color to use for the text label when the item is selected and is in the Start icon position configuration. |
| `selectedIndicatorColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = NavigationBarTokens.ItemActiveIndicatorColor.value` | the color to use for the indicator when the item is selected. |
| `unselectedIconColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = NavigationBarTokens.ItemInactiveIconColor.value` | the color to use for the icon when the item is unselected. |
| `unselectedTextColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = NavigationBarTokens.ItemInactiveLabelTextColor.value` | 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 = unselectedIconColor.copy(alpha = DisabledAlpha)` | the color to use for the icon when the item is disabled. |
| `disabledTextColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = unselectedTextColor.copy(alpha = DisabledAlpha)` | the color to use for the text label when the item is disabled. |

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