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