androidx.compose.material3

NavigationDrawerItemDefaults

Object

No hand-written docs yet.

Defaults used in NavigationDrawerItem.

object NavigationDrawerItemDefaults

Properties

ItemPadding

val ItemPadding: PaddingValues

Default external padding for a NavigationDrawerItem according to the Material specification.

Functions

colors

@Composable
fun colors(
    selectedContainerColor: Color = NavigationDrawerTokens.ActiveIndicatorColor.value,
    unselectedContainerColor: Color = Color.Transparent,
    selectedIconColor: Color = NavigationDrawerTokens.ActiveIconColor.value,
    unselectedIconColor: Color = NavigationDrawerTokens.InactiveIconColor.value,
    selectedTextColor: Color = NavigationDrawerTokens.ActiveLabelTextColor.value,
    unselectedTextColor: Color = NavigationDrawerTokens.InactiveLabelTextColor.value,
    selectedBadgeColor: Color = selectedTextColor,
    unselectedBadgeColor: Color = unselectedTextColor,
): NavigationDrawerItemColors

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

Library docs

Defaults used in NavigationDrawerItem.