Skip to content

Android components Forms

StanceTextField

Beta

A text input with a label above it, helper text, error state, prefix and suffix.

  • PlatformAndroid, Jetpack Compose
  • Builds onOutlinedTextField
  • Kindcomposable

Preview

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

StanceTextField on AndroidStanceTextField on AndroidStanceTextField on Android
StanceTextField, Light appearance
Light
StanceTextField, Dark appearance
Dark
StanceTextField, High contrast appearance
High contrast

Usage

kotlin
var name by remember { mutableStateOf("Sales team signature") }
StanceTextField(name, { name = it }, label = "Template name", helper = "Visible to your organisation.", required = true)

Accessibility

  • The label is the accessible name.
  • An error marks the field invalid and is announced.

On other platforms