NavigationRailOverrideScope

Parameters available to NavigationRail.

Parameters

modifier

the Modifier to be applied to this navigation rail

containerColor

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

contentColor

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

optional header that may hold a FloatingActionButton or a logo

windowInsets

a window insets of the navigation rail.

content

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

Properties

Link copied to clipboard
val containerColor: Color
Link copied to clipboard
val content: @Composable ColumnScope.() -> Unit
Link copied to clipboard
val contentColor: Color
Link copied to clipboard
val header: @Composable ColumnScope.() -> Unit?
Link copied to clipboard
val modifier: Modifier
Link copied to clipboard
val windowInsets: WindowInsets

Functions

Link copied to clipboard
@Composable
open override fun NavigationRailOverrideScope.NavigationRail()

Behavior function that is called by the NavigationRail component.