androidx.compose.material3

WideNavigationRailItemDefaultsSince 1.9

Object

No hand-written docs yet.

Defaults used in WideNavigationRailItem.

object WideNavigationRailItemDefaults

Properties

IndicatorCollapsedPaddingSince 1.11

val IndicatorCollapsedPadding: PaddingValues

The default padding to be applied when the associated WideNavigationRailItem is collapsed.

IndicatorExpandedPaddingSince 1.11

val IndicatorExpandedPadding: PaddingValues

The default padding to be applied when the associated WideNavigationRailItem is expanded.

Functions

indicatorPaddingSince 1.11

@Composable
fun indicatorPadding(
    railExpanded: Boolean,
    collapsedPadding: PaddingValues = IndicatorCollapsedPadding,
    expandedPadding: PaddingValues = IndicatorExpandedPadding,
): PaddingValues

The default indicator padding of a WideNavigationRailItem.

iconPositionFor

fun iconPositionFor(railExpanded: Boolean): NavigationItemIconPosition

The default icon position of a WideNavigationRailItem given whether the associated WideNavigationRail is collapsed or expanded.

colors

@Composable
fun colors(): NavigationItemColors

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

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

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

Library docs

Defaults used in WideNavigationRailItem.