NavigationRailOverrideScope

Class

Common
@ExperimentalMaterial3ComponentOverrideApi
class NavigationRailOverrideScope
internal constructor(
    val modifier: Modifier = Modifier,
    val containerColor: Color,
    val contentColor: Color,
    val header: @Composable (ColumnScope.() -> Unit)?,
    val windowInsets: WindowInsets,
    val content: @Composable ColumnScope.() -> Unit,
)

Parameters available to NavigationRail.

Parameters

modifierthe Modifier to be applied to this navigation rail
containerColorthe color used for the background of this navigation rail. Use Color.Transparent to have no color.
contentColorthe 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.
headeroptional header that may hold a FloatingActionButton or a logo
windowInsetsa window insets of the navigation rail.
contentthe content of this navigation rail, typically 3-7 NavigationRailItems