API reference

SwitchDefaults Object

Theme-derived defaults for Switch.

Signature

object SwitchDefaults

Properties

Colors : SwitchColors
[Get]
A checked switch reads as on and committed, an unchecked one as off but available. Neither state draws a track border, so the change registers through fill and thumb position.
Signature
@get:Composable val Colors: SwitchColors