JetpackNavigationRailItem
fun JetpackNavigationRailItem(selected: Boolean, onClick: () -> Unit, icon: @Composable () -> Unit, modifier: Modifier = Modifier, selectedIcon: @Composable () -> Unit = icon, enabled: Boolean = true, label: @Composable () -> Unit? = null, alwaysShowLabel: Boolean = true)
Jetpack navigation rail item with icon and label content slots. Wraps Material 3 NavigationRailItem.
Parameters
selected
Whether this item is selected.
onClick
The callback to be invoked when this item is selected.
icon
The item icon content.
modifier
Modifier to be applied to this item.
selectedIcon
The item icon content when selected.
enabled
controls the enabled state of this item. When false
, this item will not be clickable and will appear disabled to accessibility services.
label
The item text label content.
alwaysShowLabel
Whether to always show the label for this item. If false, the label will only be shown when this item is selected.