# ProvideTextStyle

> ProvideTextStyle from Material 3 Compose (`androidx.compose.material3:material3`) for Jetpack Compose, with a code sample.

- Library: [Material 3 Compose](https://composables.com/material-components/material-3-compose.md)
- API reference and more examples: [ProvideTextStyle](https://composables.com/jetpack-compose/androidx.compose.material3/material3/components/ProvideTextStyle/api.md)

## Code

```kotlin
@Composable
fun ProvideTextStyleSample() {
    ProvideTextStyle(MaterialTheme.typography.headlineSmall) {
        Text("This text inherits the provided style")
    }
}
```
