Skip to content

Android components Navigation

StanceTabs

Beta

Switches between views of the same context, fixed or scrollable.

  • PlatformAndroid, Jetpack Compose
  • Builds onPrimaryTabRow
  • Kindcomposable

Preview

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

StanceTabs on AndroidStanceTabs on AndroidStanceTabs on Android
StanceTabs, Light appearance
Light
StanceTabs, Dark appearance
Dark
StanceTabs, High contrast appearance
High contrast

Usage

kotlin
var selected by remember { mutableIntStateOf(0) }
StanceTabs(listOf("Details", "Rollout", "History"), selected, onSelect = { selected = it })

Accessibility

  • Tabs are announced with their selected state.

On other platforms