Skip to main content

CamoNavigationDrawer

A drawer with full labels and section headers: permanent beside the content on wide windows, or inside a CamoModalDrawer. Selecting an item inside a modal drawer closes it. Section titles are headings; the column scrolls and the header (a logo, an account switcher) stays.

API​

public fun <T> CamoNavigationDrawer(
sections: List<CamoNavSection<T>>,
selected: T,
onSelect: (T) -> Unit,
modifier: Modifier = Modifier,
header: (@Composable () -> Unit)? = null,
)
NameTypeDefault
sectionsList<CamoNavSection<T>>required
selectedTrequired
onSelect(T) -> Unitrequired
modifierModifierModifier
header(@Composable () -> Unit)?null
Design notes

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