androidx.compose.material3
ShortNavigationBarSince 1.9
Composable function
The short navigation bar is the Expressive version of the NavigationBar. It is shorter, and on medium-width screens it can put labels next to icons.
Use it the same way: in the bottomBar slot of a Scaffold, with one item per destination. You keep the selected index in a variable.

var selected by remember { mutableIntStateOf(0) }
val items = listOf("Home" to Icons.Filled.Home, "Favorites" to Icons.Filled.Favorite, "Settings" to Icons.Filled.Settings)
ShortNavigationBar(Modifier.width(360.dp)) {
items.forEachIndexed { index, (label, icon) ->
ShortNavigationBarItem(
selected = selected == index,
onClick = { selected = index },
icon = { Icon(icon, contentDescription = null) },
label = { Text(label) },
)
}
}
Parameters
@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,
)
modifier: ModifierOptional
modifier: ModifierOptionalDefault: Modifier
Changes size, padding, or position. See the Modifier guide.
containerColor: ColorOptional
containerColor: ColorOptionalDefault: ShortNavigationBarDefaults.containerColor
The background color of the bar.
contentColor: ColorOptional
contentColor: ColorOptionalDefault: ShortNavigationBarDefaults.contentColor
The default color for content inside the bar.
windowInsets: WindowInsetsOptional
windowInsets: WindowInsetsOptionalDefault: ShortNavigationBarDefaults.windowInsets
Space kept free for system bars. The default is usually right.
arrangement: ShortNavigationBarArrangementOptional
arrangement: ShortNavigationBarArrangementOptionalDefault: ShortNavigationBarDefaults.arrangement
How the items fill the bar: spread over the full width, or centered.
content: @Composable () -> UnitRequired
content: @Composable () -> UnitRequiredThe items. Add one ShortNavigationBarItem for each destination.
Parts
ShortNavigationBarShortNavigationBarItem
See also
ShortNavigationBarDefaults: default values and helper functions forShortNavigationBar.