Skip to content

Android components Actions

StanceFloatingActionButton

Beta

The primary action of a screen, as an icon or an extended button with a label.

  • PlatformAndroid, Jetpack Compose
  • Builds onFloatingActionButton
  • Kindcomposable

Preview

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

StanceFloatingActionButton on AndroidStanceFloatingActionButton on AndroidStanceFloatingActionButton on Android
StanceFloatingActionButton, Light appearance
Light
StanceFloatingActionButton, Dark appearance
Dark
StanceFloatingActionButton, High contrast appearance
High contrast

Usage

kotlin
StanceFloatingActionButton(StanceIcons.Plus, contentDescription = "New template", onClick = {}, text = "New template")

Accessibility

  • Icon-only buttons are named by their content description.

On other platforms