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
- Kotlin
- Dart
public fun <T> CamoNavigationDrawer(
sections: List<CamoNavSection<T>>,
selected: T,
onSelect: (T) -> Unit,
modifier: Modifier = Modifier,
header: (@Composable () -> Unit)? = null,
)
| Name | Type | Default |
|---|---|---|
sections | List<CamoNavSection<T>> | required |
selected | T | required |
onSelect | (T) -> Unit | required |
modifier | Modifier | Modifier |
header | (@Composable () -> Unit)? | null |
Design notes
Why CamoNavigationDrawer works this way, its states and its edge cases: contributor docs.