Navigation

SKNavigation

SKNavigation selects bar, rail or drawer automatically from the window size class, so a single declaration adapts from phone to foldable to tablet without branching layout code.

Coming Soonsince 2.0.0Compose · XML plannedAll components

Not yet released. SKNavigation is planned for 2.0.0; the current published release (1.4.0-alpha01) ships SKText and SKTextField only.

Usage

SKNavigation.kt
SKNavigation(
    destinations = destinations,
    selected = current,
    onSelect = ::navigate
)

Props

PropTypeDefaultDescription
destinationsList<SKDestination>—Ordered destinations.
selectedSKDestination—Active destination.

Accessibility

Selected destination announced, destination list exposed as a tab list.

Theming

Indicator and label colours from SKTheme.colors.secondaryContainer.

API surface

  • SKNavigation
  • SKDestination

Related