Android components Forms
StanceSwitch
BetaA switch with its label for settings that apply immediately.
- PlatformAndroid, Jetpack Compose
- Builds on
Switch - Kindcomposable
Preview
Rendered by the Jetpack Compose library, not drawn by hand.






Usage
var enabled by remember { mutableStateOf(true) }
StanceSwitch("Apply to new members automatically", enabled, { enabled = it })Accessibility
- Touch target is at least 48dp.
- Announced as a switch with On or Off.