androidx.compose.material3
WideNavigationRailDefaultsSince 1.9
Object
No hand-written docs yet.
Defaults used in WideNavigationRail.
object WideNavigationRailDefaults
Properties
shape
@Composable val shape: Shape
Default container shape of a wide navigation rail.
arrangement
val arrangement: Arrangement.Vertical
Default arrangement for a wide navigation rail.
windowInsets
@Composable val windowInsets: WindowInsets
Default window insets for a wide navigation rail.
modalCollapsedShape
@Composable val modalCollapsedShape: Shape
Default container shape of a collapsed ModalWideNavigationRail.
modalExpandedShape
@Composable val modalExpandedShape: Shape
Default container shape of a expanded ModalWideNavigationRail.
ModalExpandedProperties
val ModalExpandedProperties: ModalWideNavigationRailProperties
Properties used to customize the window behavior of a ModalWideNavigationRail.
ContentPaddingSince 1.11
val ContentPadding: PaddingValues
The default content padding used for WideNavigationRail and ModalWideNavigationRail.
Functions
colors
@Composable
fun colors(): WideNavigationRailColors
Creates a WideNavigationRailColors with the provided colors according to the Material specification.
@Composable
fun colors(
containerColor: Color = WideNavigationRailDefaults.containerColor,
contentColor: Color = contentColorFor(containerColor),
modalContainerColor: Color = NavigationRailExpandedTokens.ModalContainerColor.value,
modalScrimColor: Color = ScrimTokens.ContainerColor.value.copy(ScrimTokens.ContainerOpacity),
modalContentColor: Color = contentColorFor(modalContainerColor),
): WideNavigationRailColors
Creates a WideNavigationRailColors with the provided colors according to the Material specification.
Library docs
Defaults used in WideNavigationRail.