# CommonStyle

Artifact: [androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/style/CommonStyle.kt+class:androidx.compose.foundation.style.CommonStyle) Added in [1.13.0-rc01](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.13.0-rc01) Common/All
- Cmn

  ```
  @ExperimentalFoundationStyleApi
  fun interface CommonStyle : CustomStyle<CommonStyleScope>
  ```
Known direct subclasses [CommonStyle.Companion](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/CommonStyle.Companion)

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/CommonStyle.Companion` |   |

*** ** * ** ***

The `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/CommonStyle` is the style all style types must be converted to be resolved by the `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/StyleResolver`.

## Summary

| ### Nested types |
|---|
| `object https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/CommonStyle.Companion : https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/CommonStyle` |

| ### Public companion functions |
|---|---|---|
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/CommonStyleScope.https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/CommonStyle#(androidx.compose.foundation.style.CommonStyleScope).applyStyle()()` The single abstract method used to invoke the lambda. | Cmn |

| ### Extension functions |
|---|---|---|
| `infix https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/CommonStyle` | `@https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ExperimentalFoundationStyleApi https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/CommonStyle.https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/CommonStyle#(androidx.compose.foundation.style.CommonStyle).then(androidx.compose.foundation.style.CommonStyle)(other: https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/CommonStyle)` Merge this style with another style where this style will be applied before the `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/package-summary#(androidx.compose.foundation.style.CommonStyle).then(androidx.compose.foundation.style.CommonStyle)` style. | Cmn |

### Inherited functions

From [androidx.compose.foundation.style.CustomStyle](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/CustomStyle) `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/CommonStyleScope.https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/CustomStyle#(androidx.compose.foundation.style.CustomStyleScope).applyStyle()()`

The single abstract method used to invoke the lambda.
Cmn

## Public companion functions

### CommonStyleScope.applyStyle

Cmn Artifact: [androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/style/CommonStyle.kt+function:applyStyle) Added in [1.13.0-rc01](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.13.0-rc01)

```
open fun CommonStyleScope.applyStyle(): Unit
```

The single abstract method used to invoke the lambda. The lambda has `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/CustomStyle` as its receiver (i.e.`this`) type.

## Extension functions

### CommonStyle.then

Cmn Artifact: [androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/style/CommonStyle.kt+function:then)

```
@ExperimentalFoundationStyleApi
infix fun CommonStyle.then(other: CommonStyle): CommonStyle
```

Merge this style with another style where this style will be applied before the `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/package-summary#(androidx.compose.foundation.style.CommonStyle).then(androidx.compose.foundation.style.CommonStyle)` style.

| Parameters |
|---|---|
| `other: https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/CommonStyle` | the right side of the\` operator which will merge after `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/CommonStyle`. |