NavigationBarOverrideScope

Parameters available to NavigationBar.

Parameters

modifier

the Modifier to be applied to this navigation bar

containerColor

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

contentColor

the 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.

tonalElevation

when 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.

windowInsets

a window insets of the navigation bar.

content

the content of this navigation bar, typically 3-5 NavigationBarItems

Properties

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

Functions

Link copied to clipboard
@Composable
open override fun NavigationBarOverrideScope.NavigationBar()

Behavior function that is called by the NavigationBar component.