Skip to content

Android components Forms

StanceCheckbox

Beta

A checkbox with a label and description, including an indeterminate state.

  • PlatformAndroid, Jetpack Compose
  • Builds onTriStateCheckbox
  • Kindcomposable

Preview

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

StanceCheckbox on AndroidStanceCheckbox on AndroidStanceCheckbox on Android
StanceCheckbox, Light appearance
Light
StanceCheckbox, Dark appearance
Dark
StanceCheckbox, High contrast appearance
High contrast

Usage

kotlin
var checked by remember { mutableStateOf(true) }
StanceCheckbox("Send me a copy", checked, { checked = it }, description = "A PDF is emailed after signing.")

Accessibility

  • Touch target is at least 48dp.
  • The row is one toggle announced with its label and state.

On other platforms