JengaNavigationBarItem

fun RowScope.JengaNavigationBarItem(selected: Boolean, onClick: () -> Unit, icon: @Composable () -> Unit, modifier: Modifier = Modifier, label: String? = null, enabled: Boolean = true, indicator: JengaNavIndicator = JengaNavIndicator.None, colors: JengaNavigationBarColors = JengaNavigationBarDefaults.colors())(source)

A single item in a JengaNavigationBar: an icon, optional label, and selected state. Must be used inside JengaNavigationBar's content scope.

Parameters

selected

whether this item is the current destination.

onClick

called when the item is tapped.

icon

the item icon (inherits the resolved content color).

modifier

the Modifier for this item.

label

optional text under the icon.

enabled

whether the item is interactive.

colors

the color set; defaults to JengaNavigationBarDefaults.colors.