Skip to main content

CamoNavigationRail

The side rail for medium windows: the bar destinations in a column on the start edge, with an optional header (a CamoFab or a menu button). It scrolls when the items do not fit, and the header stays. The same CamoNavItems, announcements and keys as the bar, with up and down moving between items.

API​

public fun <T> CamoNavigationRail(
items: List<CamoNavItem<T>>,
selected: T,
onSelect: (T) -> Unit,
modifier: Modifier = Modifier,
header: (@Composable () -> Unit)? = null,
)
NameTypeDefault
itemsList<CamoNavItem<T>>required
selectedTrequired
onSelect(T) -> Unitrequired
modifierModifierModifier
header(@Composable () -> Unit)?null
Design notes

Why CamoNavigationRail works this way, its states and its edge cases: contributor docs.