NavigationBarOverrideScope

Class

Common
@ExperimentalMaterial3ComponentOverrideApi
class NavigationBarOverrideScope
internal constructor(
    val modifier: Modifier = Modifier,
    val containerColor: Color,
    val contentColor: Color,
    val tonalElevation: Dp,
    val windowInsets: WindowInsets,
    val content: @Composable RowScope.() -> Unit,
)

Parameters available to NavigationBar.

Parameters

modifierthe Modifier to be applied to this navigation bar
containerColorthe color used for the background of this navigation bar. Use Color.Transparent to have no color.
contentColorthe preferred color for content inside this navigation bar. Defaults to either the matching content color for containerColor, or to the current LocalContentColor if containerColor is not a color from the theme.
tonalElevationwhen containerColor is ColorScheme.surface, a translucent primary color overlay is applied on top of the container. A higher tonal elevation value will result in a darker color in light theme and lighter color in dark theme. See also: Surface.
windowInsetsa window insets of the navigation bar.
contentthe content of this navigation bar, typically 3-5 NavigationBarItems