# appearance

Common/All

## Functions summary

|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier` | `@https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ExperimentalFoundationStyleApi https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier.https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/appearance.modifier#(androidx.compose.ui.Modifier).appearance(kotlin.Function1)(block: https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/AppearanceScope.() -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)` A modifier that allows drawing a background, border, foreground, and shadows with a single modifier. | Cmn |

## Functions

### Modifier.appearance

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/Appearance.kt+function:appearance) Added in [1.13.0-rc01](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.13.0-rc01)

```
@ExperimentalFoundationStyleApi
fun Modifier.appearance(block: AppearanceScope.() -> Unit): Modifier
```

A modifier that allows drawing a background, border, foreground, and shadows with a single modifier. The values to use are in a callback that is invoked in the drawing phase and, if it reads mutable state, will only invalidate drawing.

If any mutable state, animations or style properties read in `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/package-summary#(androidx.compose.ui.Modifier).appearance(kotlin.Function1)` change `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/package-summary#(androidx.compose.ui.Modifier).appearance(kotlin.Function1)` to be called again and update the appearance.

NOTE: `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/package-summary#(androidx.compose.ui.Modifier).appearance(kotlin.Function1)` can be invoked multiple times, which is why it's important for performance to minimize work done inside of it. `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/package-summary#(androidx.compose.ui.Modifier).appearance(kotlin.Function1)` may also be invoked before effects.

| Parameters |
|---|---|
| `block: https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/AppearanceScope.() -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | the block used to determine what this modifier draws. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/AppearanceScope` |   |