Skip to content

Android components Navigation

StanceNavigationDrawer

Beta

A permanent navigation drawer for expanded windows.

  • PlatformAndroid, Jetpack Compose
  • Builds onPermanentNavigationDrawer
  • Kindcomposable

Preview

Rendered by the Jetpack Compose library, not drawn by hand.

StanceNavigationDrawer on AndroidStanceNavigationDrawer on AndroidStanceNavigationDrawer on Android
StanceNavigationDrawer, Light appearance
Light
StanceNavigationDrawer, Dark appearance
Dark
StanceNavigationDrawer, High contrast appearance
High contrast

Usage

kotlin
var selected by remember { mutableIntStateOf(0) }
StanceNavigationDrawer(destinations, selected, onSelect = { selected = it }, modifier = Modifier.height(StanceSpacing.space24 * 3)) {
    Text("Content", modifier = Modifier.padding(StanceSpacing.space4))
}

Accessibility

  • The selected item is filled and announced as selected.

On other platforms