Build apps faster with our new App builder! Check it out →

ProvideTextStyle

Common

Component in Material Compose

This function is used to set the current value of [LocalTextStyle], merging the given style with the current style values for any missing attributes. Any [Text] components included in this component's [content] will be styled with this style unless styled explicitly.

@see LocalTextStyle

Last updated:

Installation

dependencies {
   implementation("androidx.compose.material:material:1.8.0-alpha04")
}

Overloads

@Composable
fun ProvideTextStyle(value: TextStyle, content: @Composable () -> Unit)
by @alexstyl