NavigationBar

fun NavigationBar(modifier: Modifier = Modifier, windowInsets: WindowInsets = NavigationBarDefaults.windowInsets, elevation: Dp = NavigationBarDefaults.Elevation, content: @Composable RowScope.() -> Unit)(source)

Material Design bottom navigation bar.

Navigation bars offer a persistent and convenient way to switch between main destinations in an app.

Navigation bar image

NavigationBar should contain three to five NavigationBarItems, each representing a singular destination.

See NavigationBarItem for configuration specific to each item, and not the overall NavigationBar component.

Parameters

modifier

the Modifier to be applied to this navigation bar

elevation

A higher elevation value will result in a more diffused shadow 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