State of Compose 2023 results are in! Click here to learn more

← Back to Material 3 Compose

ProvideTextStyle

Component
in
Material 3
. Since 1.0.0

Overview

Code Examples

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

Overloads

ProvideTextStyle

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