androidx.compose.material3
ShortNavigationBarItemDefaultsSince 1.9
Object
No hand-written docs yet.
Defaults used in ShortNavigationBarItem.
object ShortNavigationBarItemDefaults
Functions
colors
@Composable
fun colors(): NavigationItemColors
Creates a NavigationItemColors with the provided colors according to the Material specification.
@Composable
fun colors(
selectedIconColor: Color = NavigationBarTokens.ItemActiveIconColor.value,
selectedTextColor: Color = NavigationBarTokens.ItemActiveLabelTextColor.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 NavigationItemColors with the provided colors according to the Material specification.
Library docs
Defaults used in ShortNavigationBarItem.