Property

LocalTextStyle

CompositionLocal containing the preferred TextStyle that will be used by Text components by default.

Source set: Common

Added in 1.5.0-alpha17

val LocalTextStyle = compositionLocalOf(structuralEqualityPolicy()) { DefaultTextStyle }

CompositionLocal containing the preferred TextStyle that will be used by Text components by default. To set the value for this CompositionLocal, see ProvideTextStyle which will merge any missing TextStyle properties with the existing TextStyle set in this CompositionLocal.