NavigationRailItemDefaults


Defaults used in NavigationRailItem.

Summary

Public functions

NavigationRailItemColors

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

Cmn
NavigationRailItemColors
@Composable
colors(
    selectedIconColor: Color,
    selectedTextColor: Color,
    indicatorColor: Color,
    unselectedIconColor: Color,
    unselectedTextColor: Color,
    disabledIconColor: Color,
    disabledTextColor: Color
)

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

Cmn

Public functions

colors

@Composable
fun colors(): NavigationRailItemColors

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

colors

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

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

Parameters
selectedIconColor: Color = NavigationRailColorTokens.ItemActiveIcon.value

the color to use for the icon when the item is selected.

selectedTextColor: Color = NavigationRailColorTokens.ItemActiveLabelText.value

the color to use for the text label when the item is selected.

indicatorColor: Color = NavigationRailColorTokens.ItemActiveIndicator.value

the color to use for the indicator when the item is selected.

unselectedIconColor: Color = NavigationRailColorTokens.ItemInactiveIcon.value

the color to use for the icon when the item is unselected.

unselectedTextColor: Color = NavigationRailColorTokens.ItemInactiveLabelText.value

the color to use for the text label when the item is unselected.

disabledIconColor: Color = unselectedIconColor.copy(alpha = DisabledAlpha)

the color to use for the icon when the item is disabled.

disabledTextColor: Color = unselectedTextColor.copy(alpha = DisabledAlpha)

the color to use for the text label when the item is disabled.