---
title: "TextStyleScope"
description: "An interface that introduces the textStyle property to a Style receiver scope."
type: "interface"
lastmod: "2026-05-20T01:13:53.388808Z"
---
## API Reference

> Source set: Common

```kotlin
@ExperimentalFoundationStyleApi
interface TextStyleScope
```

An interface that introduces the [textStyle](/jetpack-compose/androidx.compose.ui/ui-text/classes/TextStyle) property to a [Style](/jetpack-compose/androidx.compose.foundation/foundation/interfaces/Style) receiver scope.

## Functions

### textStyle

```kotlin
fun textStyle(value: TextStyle)
```

Applies a complete [TextStyle](/jetpack-compose/androidx.compose.ui/ui-text/classes/TextStyle) object to the component. This is a convenient way to set
multiple text-related properties at once. Text properties are inherited by child text
components unless overridden.

This property is inherited.

#### Parameters

| | |
| --- | --- |
| value | The [TextStyle](/jetpack-compose/androidx.compose.ui/ui-text/classes/TextStyle) to apply. |
