Start native apps faster with the Composables CLI ->
Object

NavigationBarItemDefaults

Defaults used in NavigationBarItem.

Source set: Common
public object NavigationBarItemDefaults

Defaults used in NavigationBarItem.

Functions

colors

Source set: Common
@Composable
    public fun colors(): NavigationBarItemColors

Creates a NavigationBarItemColors with the provided colors according to the Material specification.

colors

Source set: Common
@Composable
    public 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 NavigationBarItemColors 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.

Return

the resulting NavigationBarItemColors used for NavigationBarItem

colors

Source set: Common
@Deprecated(
        "Use overload with disabledIconColor and disabledTextColor",
        level = DeprecationLevel.HIDDEN,
    )
    @Composable
    public fun colors(
        selectedIconColor: Color = NavigationBarTokens.ItemActiveIconColor.value,
        selectedTextColor: Color = NavigationBarTokens.ItemActiveLabelTextColor.value,
        indicatorColor: Color = NavigationBarTokens.ItemActiveIndicatorColor.value,
        unselectedIconColor: Color = NavigationBarTokens.ItemInactiveIconColor.value,
        unselectedTextColor: Color = NavigationBarTokens.ItemInactiveLabelTextColor.value,
    ): NavigationBarItemColors