StylishShortNavigationBarItem

fun StylishShortNavigationBarItem(selected: Boolean, onClick: () -> Unit, icon: @Composable () -> Unit, label: @Composable () -> Unit? = null, modifier: Modifier = Modifier, enabled: Boolean = true, iconPosition: NavigationItemIconPosition = NavigationItemIconPosition.Top, colors: NavigationItemColors = ShortNavigationBarItemDefaults.colors(), interactionSource: MutableInteractionSource? = null)

A single destination inside StylishShortNavigationBar, wrapping the Material 3 ShortNavigationBarItem with M3 default colors.

Handles the selected-state indicator, disabled state, and semantics (selected / disabled) exactly like the M3 ShortNavigationBarItem.

Parameters

selected

Whether this destination is currently selected.

onClick

Called when the destination is tapped.

icon

The icon slot, typically an Icon.

label

Optional label slot. When null, the destination renders icon-only.

modifier

Modifier applied to the ShortNavigationBarItem root.

enabled

When false, the destination ignores pointer input and renders in its disabled colors. Defaults to true.

iconPosition

Whether icon sits on top of or beside the label. Defaults to NavigationItemIconPosition.Top.

colors

NavigationItemColors resolving the item colors per state. Defaults to ShortNavigationBarItemDefaults.colors.

interactionSource

Optional hoisted MutableInteractionSource for observing interactions. When null, one is remembered internally.

See also