Skip to content

Android components Layout

StanceSurface

Beta

A themed container with token elevation that becomes a solid outline in high contrast.

  • PlatformAndroid, Jetpack Compose
  • Builds onSurface
  • Kindcomposable

Preview

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

StanceSurface on AndroidStanceSurface on AndroidStanceSurface on Android
StanceSurface, Light appearance
Light
StanceSurface, Dark appearance
Dark
StanceSurface, High contrast appearance
High contrast

Usage

kotlin
StanceSurface(elevation = StanceTheme.elevation.md, bordered = true) {
    Text("Raised surface", modifier = Modifier.padding(StanceSpacing.space4))
}

Accessibility

  • Clickable surfaces get button semantics and ripple.

On other platforms