---
title: "styleResolver"
description: "A modifier that binds a [StyleResolver] to the location in the composition it should resolve properties."
type: "modifier"
lastmod: "2026-09-24"
---
## API Reference

### styleResolver

> Source set: Common

```kotlin
public fun Modifier.styleResolver(styleResolver: StyleResolver): Modifier
```

A modifier that binds a [StyleResolver](/jetpack-compose/androidx.compose.foundation/foundation/classes/StyleResolver/api) to the location in the composition it should resolve
properties. A [StyleResolver](/jetpack-compose/androidx.compose.foundation/foundation/classes/StyleResolver/api) is required to be passed to one and only one [styleResolver](/jetpack-compose/androidx.compose.foundation/foundation/modifiers/styleResolver/api)
modifier. An exception will be thrown if a [StyleResolver](/jetpack-compose/androidx.compose.foundation/foundation/classes/StyleResolver/api) instance is supplied to more than one
[styleResolver](/jetpack-compose/androidx.compose.foundation/foundation/modifiers/styleResolver/api) modifiers.

#### Parameters

| | |
| --- | --- |
| styleResolver | the resolver to be bound to this modifier. |
