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.
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
| Prop | Type | Default | Description |
|---|---|---|---|
| destinations | List<SKDestination> | — | Ordered destinations. |
| selected | SKDestination | — | 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