ShortNavigationBar

@Composable
fun ShortNavigationBar(modifier: Modifier = Modifier, containerColor: Color = ShortNavigationBarDefaults.containerColor, contentColor: Color = ShortNavigationBarDefaults.contentColor, windowInsets: WindowInsets = ShortNavigationBarDefaults.windowInsets, arrangement: ShortNavigationBarArrangement = ShortNavigationBarDefaults.arrangement, content: @Composable () -> Unit)

Material Design short navigation bar.

Short navigation bars offer a persistent and convenient way to switch between primary destinations in an app.

Short navigation bar with vertical items
image

Short navigation bar with horizontal items
image

The recommended configuration of the ShortNavigationBar depends on the width size of the screen it's being displayed at:

A simple example of the first configuration looks like this:

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 color for content inside this navigation bar.

windowInsets

a window insets of the navigation bar

arrangement

the ShortNavigationBarArrangement of this navigation bar

content

the content of this navigation bar, typically ShortNavigationBarItems

Samples

androidx.compose.material3.samples.ShortNavigationBarSampleandroidx.compose.material3.samples.ShortNavigationBarWithHorizontalItemsSample