NavigationRailComponentOverrideContext


Parameters available to NavigationRail.

Summary

Public properties

Color

the color used for the background of this navigation rail.

Cmn
@Composable ColumnScope.() -> Unit

the content of this navigation rail, typically 3-7 NavigationRailItems

Cmn
Color

the preferred color for content inside this navigation rail.

Cmn
(@Composable ColumnScope.() -> Unit)?

optional header that may hold a FloatingActionButton or a logo

Cmn
Modifier

the Modifier to be applied to this navigation rail

Cmn
WindowInsets

a window insets of the navigation rail.

Cmn

Public properties

containerColor

val containerColorColor

the color used for the background of this navigation rail. Use Color.Transparent to have no color.

content

val content: @Composable ColumnScope.() -> Unit

the content of this navigation rail, typically 3-7 NavigationRailItems

contentColor

val contentColorColor

the preferred color for content inside this navigation rail. Defaults to either the matching content color for containerColor, or to the current LocalContentColor if containerColor is not a color from the theme.

header

val header: (@Composable ColumnScope.() -> Unit)?

optional header that may hold a FloatingActionButton or a logo

modifier

val modifierModifier

the Modifier to be applied to this navigation rail

windowInsets

val windowInsetsWindowInsets

a window insets of the navigation rail.