StylishNavigationItem

data class StylishNavigationItem(val icon: ImageVector, val label: String, val selected: Boolean = false, val onClick: () -> Unit = {}, val enabled: Boolean = true, val badge: @Composable () -> Unit? = null, val iconContent: @Composable () -> Unit? = null)

Immutable data describing a single destination in a com.segnities007.stylishui.components.organisms.StylishNavigationBar.

Constructors

Link copied to clipboard
constructor(icon: ImageVector, label: String, selected: Boolean = false, onClick: () -> Unit = {}, enabled: Boolean = true, badge: @Composable () -> Unit? = null, iconContent: @Composable () -> Unit? = null)

Properties

Link copied to clipboard
val badge: @Composable () -> Unit?

Optional badge content (e.g. a notification count) rendered near the icon. When null, no badge is shown.

Link copied to clipboard

When false, the destination ignores pointer input and renders in a dimmed state.

Link copied to clipboard

The icon displayed for this destination.

Link copied to clipboard

Optional custom content rendered in place of icon when non-null. When null (the default), icon is rendered.

Link copied to clipboard

The text label displayed below (or beside) icon.

Link copied to clipboard
val onClick: () -> Unit

Called when the destination is tapped.

Link copied to clipboard

Whether this destination is currently active.